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

Function matchesPrintableModifyOtherKeys

packages/pi-tui/src/keys.ts:766–774  ·  view source on GitHub ↗
(data: string, expectedKeycode: number, expectedModifier: number)

Source from the content-addressed store, hash-verified

764}
765
766function matchesPrintableModifyOtherKeys(data: string, expectedKeycode: number, expectedModifier: number): boolean {
767 if (expectedModifier === 0) return false;
768 const parsed = parseModifyOtherKeysSequence(data);
769 if (!parsed || parsed.modifier !== expectedModifier) return false;
770 return (
771 normalizeShiftedLetterIdentityCodepoint(parsed.codepoint, parsed.modifier) ===
772 normalizeShiftedLetterIdentityCodepoint(expectedKeycode, expectedModifier)
773 );
774}
775
776function formatKeyNameWithModifiers(keyName: string, modifier: number): string | undefined {
777 const mods: string[] = [];

Callers 1

matchesKeyFunction · 0.85

Tested by

no test coverage detected