Fix using modifiers with subsequent keys in a muti-key shortcut not working

This commit is contained in:
Kovid Goyal
2018-04-24 09:42:37 +05:30
parent f5abe7cbf7
commit fe5b8f3aec
2 changed files with 5 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ def get_shortcut(keymap, mods, key, scancode):
def shortcut_matches(s, mods, key, scancode):
return s[0] & 0b1111 == mods & 0b1111 and s[1] == key
return defines.resolve_key_mods(s[0]) & 0b1111 == mods & 0b1111 and s[1] == key
def generate_key_table():