MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isKillKey

Function isKillKey

src/hooks/useTextInput.ts:417–425  ·  view source on GitHub ↗
(key: Key, input: string)

Source from the content-addressed store, hash-verified

415
416 // Check if this is a kill command (Ctrl+K, Ctrl+U, Ctrl+W, or Meta+Backspace/Delete)
417 function isKillKey(key: Key, input: string): boolean {
418 if (key.ctrl && (input === 'k' || input === 'u' || input === 'w')) {
419 return true
420 }
421 if (key.meta && (key.backspace || key.delete)) {
422 return true
423 }
424 return false
425 }
426
427 // Check if this is a yank command (Ctrl+Y or Alt+Y)
428 function isYankKey(key: Key, input: string): boolean {

Callers 1

onInputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected