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

Function shouldMarkReturnKeySeen

cli/src/utils/terminal-enter-detection.ts:23–25  ·  view source on GitHub ↗
(key: EnterDetectionKey)

Source from the content-addressed store, hash-verified

21let hasSeenReturnKey = defaultHasSeenReturnKey
22
23export function shouldMarkReturnKeySeen(key: EnterDetectionKey): boolean {
24 return (key.name === 'return' || key.name === 'enter') && !isKeypadEnter(key)
25}
26
27export function isPlainEnterKey(key: EnterDetectionKey): boolean {
28 // Some local interceptors consume Enter before the global keyboard hooks see

Callers 2

markReturnKeySeenForKeyFunction · 0.85

Calls 1

isKeypadEnterFunction · 0.90

Tested by

no test coverage detected