From 0a285216779bc20d47fa541a2ee9d859f7b88a42 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Dec 2024 19:12:41 +0530 Subject: [PATCH] ... --- kitty/keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/keys.py b/kitty/keys.py index 0147926cb..fe114a41c 100644 --- a/kitty/keys.py +++ b/kitty/keys.py @@ -148,7 +148,7 @@ def matching_key_actions(self, candidates: Iterable[KeyDefinition]) -> list[KeyD matches = matches[last_terminal_idx+1:] q = matches[-1].options.when_focus_on matches = [x for x in matches if x.options.when_focus_on == q] - else: + elif matches: matches = [matches[-1]] return matches