Skip to content

Commit fed4481

Browse files
committed
feat: Add Windows-specific placeholder hint for Alt+V image paste
1 parent 3b2ad5c commit fed4481

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

packages/cli/src/ui/components/InputPrompt.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
185185
[resetCompletionState, buffer, completionSuggestions, slashCommands],
186186
);
187187

188-
// Handle clipboard image pasting with Ctrl+Alt+V
188+
// Handle clipboard image pasting with Ctrl+V or Alt+V(Windows)
189189
const handleClipboardImage = useCallback(async () => {
190190
try {
191191
if (await clipboardHasImage()) {
@@ -370,7 +370,13 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
370370
return;
371371
}
372372

373-
// Alt+V for clipboard image paste
373+
// Ctrl+V for clipboard image paste
374+
if (key.ctrl && key.name === 'v') {
375+
handleClipboardImage();
376+
return;
377+
}
378+
379+
// Alt+V for clipboard image paste(Windows)
374380
if (key.meta && key.name === 'v') {
375381
console.error('=== Detected Alt+V key press ===');
376382
handleClipboardImage();

0 commit comments

Comments
 (0)