From d4075bfa9af1e2f6fd7b3d7db4a821d5ac85beee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Aug 2022 07:01:40 +0530 Subject: [PATCH] ... --- kitty/debug_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/debug_config.py b/kitty/debug_config.py index 255a90179..2fb8466db 100644 --- a/kitty/debug_config.py +++ b/kitty/debug_config.py @@ -56,7 +56,7 @@ def compare_shortcut_maps(final: Dict[Shortcut, str], final_kitty_mod: int, init # previous_tab uses a definition of ctrl+shift+tab not kitty_mod+tab, but # we cant distinguish these as the information about the original # definition is discarded. - ei = {k._replace(kitty_mod=0 if v == 'previous_tab' and k.keys[0].key == 57346 else initial_kitty_mod).human_repr: v for k, v in initial.items()} + ei = {k._replace(kitty_mod=0 if v == 'previous_tab' and k.human_repr.endswith('+tab') else initial_kitty_mod).human_repr: v for k, v in initial.items()} ef = {k._replace(kitty_mod=final_kitty_mod).human_repr: v for k, v in final.items()} added = set(ef) - set(ei) removed = set(ei) - set(ef)