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

Function normalizeShiftedLetterIdentityCodepoint

packages/pi-tui/src/keys.ts:360–366  ·  view source on GitHub ↗
(codepoint: number, modifier: number)

Source from the content-addressed store, hash-verified

358}
359
360function normalizeShiftedLetterIdentityCodepoint(codepoint: number, modifier: number): number {
361 const effectiveModifier = modifier & ~LOCK_MASK;
362 if ((effectiveModifier & MODIFIERS.shift) !== 0 && codepoint >= 65 && codepoint <= 90) {
363 return codepoint + 32;
364 }
365 return codepoint;
366}
367
368const LEGACY_KEY_SEQUENCES = {
369 up: ["\x1b[A", "\x1bOA"],

Callers 3

matchesKittySequenceFunction · 0.85
formatParsedKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected