fix: suppress input text for kitty release events
Release events now produce empty input to prevent character duplication when reportEventTypes flag is enabled. key.eventType is still passed through so handlers can detect release events. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,9 @@ export function useInput(
|
||||
|
||||
let input: string;
|
||||
if (keypress.isKittyProtocol) {
|
||||
if (keypress.isPrintable) {
|
||||
if (keypress.eventType === "release") {
|
||||
input = "";
|
||||
} else if (keypress.isPrintable) {
|
||||
input = keypress.text ?? keypress.name;
|
||||
} else if (keypress.ctrl && keypress.name.length === 1) {
|
||||
input = keypress.name;
|
||||
|
||||
Reference in New Issue
Block a user