Ignore undefined actions in keymaps

This commit is contained in:
Manuel Cortez 2021-07-06 17:01:42 -05:00
parent 8ff6809f08
commit b74cd9a73d

View File

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