diff --git a/kitty/cli.py b/kitty/cli.py index 14e704209..91caf1a04 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -764,7 +764,8 @@ def print_shortcut(key_sequence: Iterable[SingleKey], action: KeyAction) -> None GLFW_MOD_ALT, GLFW_MOD_CONTROL, GLFW_MOD_SHIFT, GLFW_MOD_SUPER, GLFW_MOD_HYPER, GLFW_MOD_META, glfw_get_key_name ) - mmap = {'shift': GLFW_MOD_SHIFT, 'alt': GLFW_MOD_ALT, 'ctrl': GLFW_MOD_CONTROL, ('cmd' if is_macos else 'super'): GLFW_MOD_SUPER, 'hyper': GLFW_MOD_HYPER, 'meta': GLFW_MOD_META} + mmap = {'shift': GLFW_MOD_SHIFT, 'alt': GLFW_MOD_ALT, 'ctrl': GLFW_MOD_CONTROL, ('cmd' if is_macos else 'super'): GLFW_MOD_SUPER, + 'hyper': GLFW_MOD_HYPER, 'meta': GLFW_MOD_META} keys = [] for key_spec in key_sequence: names = [] diff --git a/kitty_tests/keys.py b/kitty_tests/keys.py index 4527d1d57..190e7949c 100644 --- a/kitty_tests/keys.py +++ b/kitty_tests/keys.py @@ -473,8 +473,8 @@ class TestKeys(BaseTest): for text in ('', 'moose'): ev = KeyEvent( type=action, mods=mods, key=key, text=text, shifted_key=shifted_key, alternate_key=alternate_key, - shift=bool(mods & 1), alt=bool(mods & 2), ctrl=bool(mods & 4), super=bool(mods & 8) - , hyper=bool(mods & 16), meta=bool(mods & 32) + shift=bool(mods & 1), alt=bool(mods & 2), ctrl=bool(mods & 4), super=bool(mods & 8), + hyper=bool(mods & 16), meta=bool(mods & 32) ) ec = encode_key_event(ev) q = decode_key_event(ec[2:-1], ec[-1])