MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / isKillKey

Function isKillKey

restored-src/src/hooks/useSearchInput.ts:42–50  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

40}
41
42function isKillKey(e: KeyboardEvent): boolean {
43 if (e.ctrl && (e.key === 'k' || e.key === 'u' || e.key === 'w')) {
44 return true
45 }
46 if (e.meta && e.key === 'backspace') {
47 return true
48 }
49 return false
50}
51
52function isYankKey(e: KeyboardEvent): boolean {
53 return (e.ctrl || e.meta) && e.key === 'y'

Callers 1

handleKeyDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected