Skip to content

Commit

Permalink
Return correct bindings inside modal widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
twrightsman committed May 17, 2024
1 parent 6c099d0 commit 13cab6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed

- Return correct bindings inside modal widgets

## [0.60.1] - 2024-05-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def namespace_bindings(self) -> dict[str, tuple[DOMNode, Binding]]:
"""

bindings_map: dict[str, tuple[DOMNode, Binding]] = {}
for namespace, bindings in self._binding_chain:
for namespace, bindings in self._modal_binding_chain:
for key, binding in bindings.keys.items():
if existing_key_and_binding := bindings_map.get(key):
_, existing_binding = existing_key_and_binding
Expand Down

0 comments on commit 13cab6e

Please sign in to comment.