mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
Refactor shortcut config parsing
Resolution of kitty_mod and creation of the maps now happens in one central place after all config is parsed. Fixes #496 Also have --debug-config output multi-key shortcuts nicely as well.
This commit is contained in:
@@ -257,7 +257,7 @@ def get_shortcut(keymap, mods, key, scancode):
|
||||
|
||||
|
||||
def shortcut_matches(s, mods, key, scancode):
|
||||
return defines.resolve_key_mods(s[0]) & 0b1111 == mods & 0b1111 and s[1] == key
|
||||
return s[0] & 0b1111 == mods & 0b1111 and s[1] == key
|
||||
|
||||
|
||||
def generate_key_table():
|
||||
|
||||
Reference in New Issue
Block a user