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:
@@ -644,7 +644,8 @@ export function matchesKey(data: string, keyId: KeyId): boolean {
|
|||||||
return matchesKittySequence(data, codepoint, modifier);
|
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;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user