mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix tests
This commit is contained in:
@@ -584,7 +584,9 @@ class MessagePump(metaclass=MessagePumpMeta):
|
||||
_raise_duplicate_key_handlers_error(
|
||||
key_name, invoked_method.__name__, key_method.__name__
|
||||
)
|
||||
handled = await invoke(key_method, event)
|
||||
# If key handlers return False, then they are not considered handled
|
||||
# This allows key handlers to do some conditional logic
|
||||
handled = (await invoke(key_method, event)) != False
|
||||
invoked_method = key_method
|
||||
|
||||
return handled
|
||||
|
||||
Reference in New Issue
Block a user