mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-02-16 22:44: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):
|
def create_invisible_keyboard_shorcuts(self):
|
||||||
keymap = {}
|
keymap = {}
|
||||||
for i in config.app["keymap"]:
|
for i in config.keymap["keymap"]:
|
||||||
if hasattr(self, i):
|
if hasattr(self, i):
|
||||||
keymap[config.app["keymap"][i]] = getattr(self, i)
|
keymap[config.keymap["keymap"][i]] = getattr(self, i)
|
||||||
return keymap
|
return keymap
|
||||||
|
|
||||||
def register_invisible_keyboard_shorcuts(self, keymap):
|
def register_invisible_keyboard_shorcuts(self, keymap):
|
||||||
|
@ -9,7 +9,7 @@ class KeystrokeEditor(object):
|
|||||||
super(KeystrokeEditor, self).__init__()
|
super(KeystrokeEditor, self).__init__()
|
||||||
self.changed = False # Change it if the keyboard shorcuts are reassigned.
|
self.changed = False # Change it if the keyboard shorcuts are reassigned.
|
||||||
self.dialog = wx_ui.keystrokeEditorDialog()
|
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.
|
# we need to copy the keymap before modify it, for unregistering the old keystrokes if is needed.
|
||||||
self.hold_map = self.map.copy()
|
self.hold_map = self.map.copy()
|
||||||
self.dialog.put_keystrokes(constants.actions, self.map)
|
self.dialog.put_keystrokes(constants.actions, self.map)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user