mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
#41: Replace references to config.app["keymap"] to config.keymap["keymap"]
This commit is contained in:
parent
f68388f700
commit
6ba57e83cf
@ -1029,9 +1029,9 @@ class Controller(object):
|
||||
|
||||
def create_invisible_keyboard_shorcuts(self):
|
||||
keymap = {}
|
||||
for i in config.app["keymap"]:
|
||||
for i in config.keymap["keymap"]:
|
||||
if hasattr(self, i):
|
||||
keymap[config.app["keymap"][i]] = getattr(self, i)
|
||||
keymap[config.keymap["keymap"][i]] = getattr(self, i)
|
||||
return keymap
|
||||
|
||||
def register_invisible_keyboard_shorcuts(self, keymap):
|
||||
|
@ -9,7 +9,7 @@ class KeystrokeEditor(object):
|
||||
super(KeystrokeEditor, self).__init__()
|
||||
self.changed = False # Change it if the keyboard shorcuts are reassigned.
|
||||
self.dialog = wx_ui.keystrokeEditorDialog()
|
||||
self.map = config.app["keymap"]
|
||||
self.map = config.keymap["keymap"]
|
||||
# we need to copy the keymap before modify it, for unregistering the old keystrokes if is needed.
|
||||
self.hold_map = self.map.copy()
|
||||
self.dialog.put_keystrokes(constants.actions, self.map)
|
||||
|
Loading…
Reference in New Issue
Block a user