mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-05 03:12:29 -04:00
Ignore undefined actions in keymaps
This commit is contained in:
parent
8ff6809f08
commit
b74cd9a73d
@ -1265,7 +1265,8 @@ class Controller(object):
|
|||||||
keymap = {}
|
keymap = {}
|
||||||
for i in config.keymap["keymap"]:
|
for i in config.keymap["keymap"]:
|
||||||
if hasattr(self, i):
|
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
|
return keymap
|
||||||
|
|
||||||
def register_invisible_keyboard_shorcuts(self, keymap):
|
def register_invisible_keyboard_shorcuts(self, keymap):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user