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:
Mario Zechner 2026-01-07 00:57:10 +01:00
parent 9330f5a10a
commit 7a44cf0db0

View file

@ -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;