You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): add Option+V for clipboard image paste on macOS (#8120)
* fix(cli): add Option+V for clipboard image paste on macOS (#8118)
macOS terminals intercept Cmd+V for text paste, so the existing
Cmd+V binding for clipboard image paste never fires. Users had to
discover Ctrl+V through trial and error.
Changes:
- keyBindings.ts: add { key: 'v', meta: true } (Option/Alt+V) to
PASTE_CLIPBOARD_IMAGE bindings on non-Windows platforms
- KeyboardShortcuts.tsx: update macOS hint from 'cmd+v' to
'ctrl+v / opt+v' to reflect what actually works
* fix(cli): correct macOS image-paste shortcut hint (#8118)
* test(cli): cover platform-specific image-paste shortcut hint (#8118)
* fix(cli): make option+v image paste work on stock macOS terminals (#8118)
* fix(cli): address review feedback on macOS image-paste shortcut (#8118)
- Guard the option-composed glyph lookup with Object.hasOwn so inherited Object.prototype members can never resolve as a composed key.
- Add a non-macOS pass-through test for the "√" glyph, mirroring the existing "†" coverage.
- Correct the keyboard-shortcuts docs: Ctrl+V also pastes on macOS, matching the overlay hint.
---------
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
Copy file name to clipboardExpand all lines: docs/users/reference/keyboard-shortcuts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ This document lists the available keyboard shortcuts in Qwen Code.
45
45
|`Ctrl+Y`| Retry the last failed request. |
46
46
|`Ctrl+Right Arrow` / `Meta+Right Arrow` / `Meta+F`| Move the cursor one word to the right. |
47
47
|`Ctrl+U`| Delete from the cursor to the beginning of the line. |
48
-
|`Ctrl+V` (Windows: `Alt+V`)| Paste clipboard content. If the clipboard contains an image, it will be saved and a reference to it will be inserted in the prompt. |
48
+
|`Ctrl+V`/ `Option+V`(Windows: `Alt+V`) | Paste clipboard content. If the clipboard contains an image, it will be saved and a reference to it will be inserted in the prompt. |
49
49
|`Ctrl+W` / `Meta+Backspace` / `Ctrl+Backspace`| Delete the word to the left of the cursor. |
50
50
|`Ctrl+X`| Open the current input in an external editor. |
0 commit comments