Let Ctrl+V reach the agent on macOS, and leave Cmd+V to the webview's own paste

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 00:10:45 -08:00
1 parent b629f5ef04
commit 91479b21a1
3 files changed
+36 -3

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ export async function mountTerminal(container, { onInput, onResize, onFontSize,
// Ctrl+C copies while text is selected and is the interrupt otherwise (the Windows Terminal
// rule; on a Mac it is always the interrupt); Ctrl+Shift+C and Cmd+C always copy.
// preventDefault on the paste keys: the browser's own paste event would otherwise reach the
// terminal a second time.
// terminal a second time. On a Mac no key is a paste key here: Cmd+V is that own paste event.
const action = clipboardAction(event, term.hasSelection(), { mac: IS_MAC });
if (action === 'copy') {
copySelection();