From c910f6c8326486add255d6e9f45fbc87f39b08a3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Oct 2018 14:08:33 +0530 Subject: [PATCH] When using --debug-keyboard also output matched action for keypresses, if any. Fixes #1021 --- kitty/boss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/boss.py b/kitty/boss.py index 891c150c4..9caaca67f 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -552,6 +552,8 @@ class Boss: if key_action is not None: f = getattr(self, key_action.func, None) if f is not None: + if self.args.debug_keyboard: + print('Keypress matched action:', f.__name__) passthrough = f(*key_action.args) if passthrough is not True: return True @@ -565,6 +567,8 @@ class Boss: f = getattr(tab, key_action.func, getattr(window, key_action.func, None)) if f is not None: passthrough = f(*key_action.args) + if self.args.debug_keyboard: + print('Keypress matched action:', f.__name__) if passthrough is not True: return True return False