MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isYankKey

Function isYankKey

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

Source from the content-addressed store, hash-verified

427
428 // Check if this is a yank command (Ctrl+Y or Alt+Y)
429 function isYankKey(key: Key, input: string): boolean {
430 return (key.ctrl || key.meta) && input === 'y'
431 }
432
433 function onInput(input: string, key: Key): void {
434 // 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