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

Function isKillKey

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

Source from the content-addressed store, hash-verified

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

Callers 1

onInputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected