mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
stop actions
This commit is contained in:
@@ -1753,7 +1753,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
):
|
||||
binding = bindings.keys.get(key)
|
||||
if binding is not None and binding.priority == priority:
|
||||
await self.action(binding.action, default_namespace=namespace)
|
||||
if await self.action(binding.action, namespace) in (True, None):
|
||||
return True
|
||||
return False
|
||||
|
||||
@@ -1843,11 +1843,9 @@ class App(Generic[ReturnType], DOMNode):
|
||||
)
|
||||
|
||||
if callable(private_method):
|
||||
await invoke(private_method, *params)
|
||||
return True
|
||||
return await invoke(private_method, *params)
|
||||
elif callable(public_method):
|
||||
await invoke(public_method, *params)
|
||||
return True
|
||||
return await invoke(public_method, *params)
|
||||
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user