From 3ec66c0b9f042ef070f2ec26f946318e2b8061b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Jun 2018 17:48:25 +0530 Subject: [PATCH] Fix regression in previous release that caused --debug-config to fail when printing shortcuts Forgot to adjust the print shortcuts code for native shortcuts. Fixes #695 --- kitty/cli.py | 2 +- kitty/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/cli.py b/kitty/cli.py index bb2631642..c9b57e683 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -624,7 +624,7 @@ def print_shortcut(key_sequence, action): keys = [] for key in key_sequence: names = [] - mods, key = key + mods, is_native, key = key for name, val in mmap.items(): if mods & val: names.append(name) diff --git a/kitty/config.py b/kitty/config.py index 7abc2a697..efc9d9c68 100644 --- a/kitty/config.py +++ b/kitty/config.py @@ -37,7 +37,7 @@ def parse_shortcut(sc): parts = sc.split('+') mods = parse_mods(parts[:-1], sc) if mods is None: - return None, None + return None, None, None key = parts[-1].upper() key = getattr(defines, 'GLFW_KEY_' + named_keys.get(key, key), None) is_native = False