Commit 297e3d4
terminal: fix unreliable middle-click paste on Linux
On Linux the middle-click paste in the terminal was unreliable when the
click occurred over a word because xterm.js intercepts the mouse event
to select the word before the browser can perform the primary-selection
paste. Instead of relying on Chromium's primary-selection paste, this
change explicitly pastes the primary selection clipboard when
middleClickBehavior is 'default' on Linux, matching the behavior users
expect and making the paste reliable regardless of cursor position.
Fixes microsoft#272927
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent f4e6a58 commit 297e3d4
File tree
1 file changed
+9
-0
lines changed- src/vs/workbench/contrib/terminalContrib/clipboard/browser
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
| |||
0 commit comments