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,8 +1753,8 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
):
|
):
|
||||||
binding = bindings.keys.get(key)
|
binding = bindings.keys.get(key)
|
||||||
if binding is not None and binding.priority == priority:
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
async def on_event(self, event: events.Event) -> None:
|
async def on_event(self, event: events.Event) -> None:
|
||||||
@@ -1843,11 +1843,9 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if callable(private_method):
|
if callable(private_method):
|
||||||
await invoke(private_method, *params)
|
return await invoke(private_method, *params)
|
||||||
return True
|
|
||||||
elif callable(public_method):
|
elif callable(public_method):
|
||||||
await invoke(public_method, *params)
|
return await invoke(public_method, *params)
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user