MCPcopy
hub / github.com/codeaashu/claude-code / isYankKey

Function isYankKey

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

Source from the content-addressed store, hash-verified

425
426 // Check if this is a yank command (Ctrl+Y or Alt+Y)
427 function isYankKey(key: Key, input: string): boolean {
428 return (key.ctrl || key.meta) && input === 'y'
429 }
430
431 function onInput(input: string, key: Key): void {
432 // Note: Image paste shortcut (chat:imagePaste) is handled via useKeybindings in PromptInput

Callers 1

onInputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected