mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-05 03:12:29 -04:00
Fixed an issue when indefined keystrokes
This commit is contained in:
parent
582be54dea
commit
b2b9cd810f
@ -1272,8 +1272,10 @@ class Controller(object):
|
|||||||
def register_invisible_keyboard_shorcuts(self, keymap):
|
def register_invisible_keyboard_shorcuts(self, keymap):
|
||||||
if config.changed_keymap:
|
if config.changed_keymap:
|
||||||
commonMessageDialogs.changed_keymap()
|
commonMessageDialogs.changed_keymap()
|
||||||
|
# Make sure we pass a keymap without undefined keystrokes.
|
||||||
|
new_keymap = {key: keymap[key] for key in keymap.keys() if keymap[key] != ""}
|
||||||
self.keyboard_handler = WXKeyboardHandler(self.view)
|
self.keyboard_handler = WXKeyboardHandler(self.view)
|
||||||
self.keyboard_handler.register_keys(keymap)
|
self.keyboard_handler.register_keys(new_keymap)
|
||||||
|
|
||||||
def unregister_invisible_keyboard_shorcuts(self, keymap):
|
def unregister_invisible_keyboard_shorcuts(self, keymap):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user