switch to function hot keys
This commit is contained in:
parent
b580cd2532
commit
f7a5b3aec1
|
@ -19,25 +19,30 @@ class DMShell(BasePrompt):
|
||||||
self._key_bindings = BINDINGS
|
self._key_bindings = BINDINGS
|
||||||
self._register_subshells()
|
self._register_subshells()
|
||||||
self._register_keybindings()
|
self._register_keybindings()
|
||||||
|
|
||||||
def _register_keybindings(self):
|
def _register_keybindings(self):
|
||||||
self._toolbar.extend(
|
self._toolbar.extend(
|
||||||
[
|
[
|
||||||
("", " [H]elp "),
|
("", " [?] Help "),
|
||||||
("", " [W]ild Magic Table "),
|
("", " [F2] Wild Magic Table "),
|
||||||
("", " [Q]uit "),
|
("", " [^Q] Quit "),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@self.key_bindings.add("c-q")
|
@self.key_bindings.add("c-q")
|
||||||
@self.key_bindings.add("c-d")
|
@self.key_bindings.add("c-d")
|
||||||
|
@self.key_bindings.add("<sigint>")
|
||||||
def quit(event):
|
def quit(event):
|
||||||
self.quit()
|
self.quit()
|
||||||
@self.key_bindings.add("c-h")
|
|
||||||
|
@self.key_bindings.add("?")
|
||||||
def help(event):
|
def help(event):
|
||||||
self.help()
|
self.help()
|
||||||
@self.key_bindings.add("c-w")
|
|
||||||
|
@self.key_bindings.add("f2")
|
||||||
def wmt(event):
|
def wmt(event):
|
||||||
self.wmt()
|
self.wmt()
|
||||||
|
|
||||||
@command(usage="""
|
@command(usage="""
|
||||||
[title]QUIT[/title]
|
[title]QUIT[/title]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user