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,6 +1265,7 @@ class Controller(object):
keymap = {}
for i in config.keymap["keymap"]:
if hasattr(self, i):
if config.keymap["keymap"][i] != "":
keymap[config.keymap["keymap"][i]] = getattr(self, i)
return keymap