#41: Replace references to config.app["keymap"] to config.keymap["keymap"]

This commit is contained in:
Bill Dengler 2015-05-16 01:23:33 -04:00
parent f68388f700
commit 6ba57e83cf
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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)