From a9e310fd7dbe1d231b0d29c59ecd06831fe6e711 Mon Sep 17 00:00:00 2001 From: Yo'av Moshe Date: Tue, 23 Jul 2024 15:40:45 +0200 Subject: [PATCH] run commands regardless of the bindings checking order --- CHANGELOG.md | 1 + src/textual/app.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef7ca7302..6b0d104fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fixed issues in Kitty terminal after exiting app https://github.com/Textualize/textual/issues/4779 +- Fixed `Footer` items not being clickable when their `priority` is set to `True` ## [0.73.0] - 2024-07-18 diff --git a/src/textual/app.py b/src/textual/app.py index 9f38dcb3af..db6930e41d 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -3048,7 +3048,7 @@ async def _check_bindings(self, key: str, priority: bool = False) -> bool: else self.screen._modal_binding_chain ): binding = bindings.keys.get(key) - if binding is not None and binding.priority == priority: + if binding is not None: if await self.run_action(binding.action, namespace): return True return False