A single key shortcut should override all previous multi-key shortcuts that have that shortcut as a prefix
Fixes #7058
This commit is contained in:
parent
7f1c371b6e
commit
9ef6801f4c
2 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ Detailed list of changes
|
|||
|
||||
- Fix a regression in the previous release that caused `kitten @ send-text` with a match tab parameter to send text twice to the active window (:iss:`7027`)
|
||||
|
||||
- Fix a regression in the previous release that caused overriding of existing multi-key mappings to fail (:iss:`7044`)
|
||||
- Fix a regression in the previous release that caused overriding of existing multi-key mappings to fail (:iss:`7044`, :iss:`7058`)
|
||||
|
||||
- Wayland+NVIDIA: Do not request an sRGB output buffer as a bug in Wayland causes kitty to not start (:iss:`7021`)
|
||||
|
||||
|
|
|
|||
|
|
@ -1442,11 +1442,11 @@ def matching_key_actions(self, candidates: Iterable[KeyDefinition]) -> List[KeyD
|
|||
has_sequence_match = True
|
||||
matches.append(x)
|
||||
if has_sequence_match:
|
||||
matches = [x for x in matches if x.is_sequence]
|
||||
terminal_matches = [x for x in matches if not x.rest]
|
||||
if terminal_matches:
|
||||
matches = [terminal_matches[-1]]
|
||||
else:
|
||||
matches = [x for x in matches if x.is_sequence]
|
||||
q = matches[-1].options.when_focus_on
|
||||
matches = [x for x in matches if x.options.when_focus_on == q]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue