From b9033d721ce1e04ce775500d912cf92db35c21dd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 Jul 2021 07:02:52 +0530 Subject: [PATCH] print KeyPress on a new line --- kitty/boss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index d0987df21..3f09b827e 100755 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -804,7 +804,8 @@ class Boss: def report_match(f: Callable) -> None: if self.args.debug_keyboard: - print(f'\x1b[35m{dispatch_type}\x1b[m matched action:', func_name(f), flush=True) + prefix = '\n' if dispatch_type == 'KeyPress' else '' + print(f'{prefix}\x1b[35m{dispatch_type}\x1b[m matched action:', func_name(f), flush=True) if key_action is not None: f = getattr(self, key_action.func, None)