mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 11:02:17 +00:00
fix(tui): matchesKey now matches Kitty sequences for unmodified letter keys
Needed for key release events which come as CSI sequences even for plain letters.
This commit is contained in:
parent
9330f5a10a
commit
7a44cf0db0
1 changed files with 2 additions and 1 deletions
|
|
@ -644,7 +644,8 @@ export function matchesKey(data: string, keyId: KeyId): boolean {
|
|||
return matchesKittySequence(data, codepoint, modifier);
|
||||
}
|
||||
|
||||
return data === key;
|
||||
// Check both raw char and Kitty sequence (needed for release events)
|
||||
return data === key || matchesKittySequence(data, codepoint, 0);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue