Add docstring to action_check_bindings (#2266)

* Add docstring to action_check_bindings

* Use action docstring convention
This commit is contained in:
darrenburns
2023-04-12 11:16:59 +01:00
committed by GitHub
parent f95e30870b
commit 2bfe7df524

View File

@@ -2448,6 +2448,7 @@ class App(Generic[ReturnType], DOMNode):
self._unregister(root)
async def action_check_bindings(self, key: str) -> None:
"""An [action](/guide/actions) to handle a key press using the binding system."""
if not await self.check_bindings(key, priority=True):
await self.check_bindings(key, priority=False)
@@ -2455,9 +2456,6 @@ class App(Generic[ReturnType], DOMNode):
"""An [action](/guide/actions) to quit the app as soon as possible."""
self.exit()
async def action_bang(self) -> None:
1 / 0
async def action_bell(self) -> None:
"""An [action](/guide/actions) to play the terminal 'bell'."""
self.bell()