MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isKeypadEnter

Function isKeypadEnter

cli/src/utils/keypad-keys.ts:27–29  ·  view source on GitHub ↗
(key: KeypadKey)

Source from the content-addressed store, hash-verified

25}
26
27export function isKeypadEnter(key: KeypadKey): boolean {
28 return key.name === 'kpenter' || key.sequence === '\x1bOM'
29}
30
31export function getKeypadPrintableSequence(key: KeypadKey): string | null {
32 const kittyDigit = /^kp([0-9])$/.exec(key.name ?? '')?.[1]

Callers 4

getEnterKeyActionFunction · 0.90
shouldMarkReturnKeySeenFunction · 0.90
isPlainEnterKeyFunction · 0.90

Calls

no outgoing calls

Tested by 1

getEnterKeyActionFunction · 0.72