From f7a5b3aec123813ca565a4a4b32e0fdb4d8ddb55 Mon Sep 17 00:00:00 2001 From: evilchili Date: Tue, 4 Jul 2023 11:17:46 -0700 Subject: [PATCH] switch to function hot keys --- deadsands/site_tools/shell/interactive_shell.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/deadsands/site_tools/shell/interactive_shell.py b/deadsands/site_tools/shell/interactive_shell.py index f938832..f8f9625 100644 --- a/deadsands/site_tools/shell/interactive_shell.py +++ b/deadsands/site_tools/shell/interactive_shell.py @@ -19,25 +19,30 @@ class DMShell(BasePrompt): self._key_bindings = BINDINGS self._register_subshells() self._register_keybindings() + def _register_keybindings(self): self._toolbar.extend( [ - ("", " [H]elp "), - ("", " [W]ild Magic Table "), - ("", " [Q]uit "), + ("", " [?] Help "), + ("", " [F2] Wild Magic Table "), + ("", " [^Q] Quit "), ] ) @self.key_bindings.add("c-q") @self.key_bindings.add("c-d") + @self.key_bindings.add("") def quit(event): self.quit() - @self.key_bindings.add("c-h") + + @self.key_bindings.add("?") def help(event): self.help() - @self.key_bindings.add("c-w") + + @self.key_bindings.add("f2") def wmt(event): self.wmt() + @command(usage=""" [title]QUIT[/title]