stop actions

This commit is contained in:
Will McGugan
2022-12-18 22:03:19 +00:00
parent 2f1bdea234
commit bb499f68e2

View File

@@ -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