Merge pull request #1346 from davep/bug/1342/inherited-movement-keys

Add support for a `PRIORITY_BINDINGS` classvar to work alongside `BINDINGS`
This commit is contained in:
Will McGugan
2022-12-16 20:13:31 +00:00
committed by GitHub
9 changed files with 704 additions and 31 deletions

View File

@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Added
- Added `PRIORITY_BINDINGS` class variable, which can be used to control if a widget's bindings have priority by default. https://github.com/Textualize/textual/issues/1343
### Changed
- Renamed the `Binding` argument `universal` to `priority`. https://github.com/Textualize/textual/issues/1343
- When looking for bindings that have priority, they are now looked from `App` downwards. https://github.com/Textualize/textual/issues/1343
- `BINDINGS` on an `App`-derived class have priority by default. https://github.com/Textualize/textual/issues/1343
- `BINDINGS` on a `Screen`-derived class have priority by default. https://github.com/Textualize/textual/issues/1343
### Fixed
- Fixed validator not running on first reactive set https://github.com/Textualize/textual/pull/1359