mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Ignore undefined actions in keymaps
This commit is contained in:
parent
8ff6809f08
commit
b74cd9a73d
@ -1265,7 +1265,8 @@ class Controller(object):
|
||||
keymap = {}
|
||||
for i in config.keymap["keymap"]:
|
||||
if hasattr(self, i):
|
||||
keymap[config.keymap["keymap"][i]] = getattr(self, i)
|
||||
if config.keymap["keymap"][i] != "":
|
||||
keymap[config.keymap["keymap"][i]] = getattr(self, i)
|
||||
return keymap
|
||||
|
||||
def register_invisible_keyboard_shorcuts(self, keymap):
|
||||
|
Loading…
Reference in New Issue
Block a user