From b74cd9a73d68e29f143e74eec935f4071c2b3d8b Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 6 Jul 2021 17:01:42 -0500 Subject: [PATCH] Ignore undefined actions in keymaps --- src/controller/mainController.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index fa689661..99f77e28 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -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):