diff --git a/trogon/trogon.py b/trogon/trogon.py index 1238747..1160303 100644 --- a/trogon/trogon.py +++ b/trogon/trogon.py @@ -47,6 +47,7 @@ class CommandBuilder(Screen): BINDINGS = [ Binding(key="ctrl+r", action="close_and_run", description="Close & Run"), + Binding("q,escape", "close_no_run", "Close Without Running"), Binding( key="ctrl+t", action="focus_command_tree", description="Focus Command Tree" ), @@ -134,6 +135,9 @@ def action_close_and_run(self) -> None: self.app.execute_on_exit = True self.app.exit() + def action_close_no_run(self) -> None: + self.app.exit() + def action_about(self) -> None: from .widgets.about import AboutDialog