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

Function isYankKey

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

Source from the content-addressed store, hash-verified

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