MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / forwardInputSequence

Method forwardInputSequence

packages/pi-tui/src/terminal.ts:309–318  ·  view source on GitHub ↗
(sequence: string)

Source from the content-addressed store, hash-verified

307 }
308
309 private forwardInputSequence(sequence: string): void {
310 if (!this.inputHandler) return;
311 const isAppleTerminal = sequence === "\r" && isAppleTerminalSession();
312 const input = normalizeAppleTerminalInput(
313 sequence,
314 isAppleTerminal,
315 isAppleTerminal && isNativeModifierPressed("shift"),
316 );
317 this.inputHandler(input);
318 }
319
320 private enableModifyOtherKeys(): void {
321 if (this._kittyProtocolActive || this._modifyOtherKeysActive) return;

Calls 3

isNativeModifierPressedFunction · 0.90
isAppleTerminalSessionFunction · 0.85

Tested by

no test coverage detected