Skip to content

Commit

Permalink
New quit key, add quit to command palette
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Aug 10, 2024
1 parent d17d344 commit a967e3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/posting/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def response_trace(self) -> ResponseTrace:
return self.query_one(ResponseTrace)


class Posting(App[None]):
class Posting(App[None], inherit_bindings=False):
AUTO_FOCUS = None
COMMANDS = {PostingProvider}
CSS_PATH = Path(__file__).parent / "posting.scss"
Expand All @@ -583,6 +583,11 @@ class Posting(App[None]):
"toggle_jump_mode",
description="Jump",
),
Binding(
"ctrl+q",
"app.quit",
description="Quit",
),
Binding("f1,ctrl+question_mark", "help", "Help"),
Binding("f8", "save_screenshot", "Save screenshot", show=False),
]
Expand Down
1 change: 1 addition & 0 deletions src/posting/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def commands(

commands_to_show: list[tuple[str, IgnoreReturnCallbackType, str]] = [
*self.get_theme_commands(),
("app: quit", app.action_quit, "Quit Posting"),
]

from posting.app import MainScreen
Expand Down

0 comments on commit a967e3a

Please sign in to comment.