Repository navigation
Replies: 2 comments
|
Thanks for asking, @ryol8888. Yes: Shift+Insert is the browser's own paste, which Hide leaves alone in a terminal on purpose, so it pastes this computer's clipboard everywhere, another computer's screen included, and it should keep working. |
|
Short answer: yes — Shift+Insert is a legitimate, historic terminal paste chord, and what you're observing is behavior that is "correct by accident". I would document both chords; handling the key explicitly is optional. Context on the chord itself
Why it works today (your code read is correct) xterm.js doesn't emit a custom sequence for Shift+Insert — it's left to the browser/OS, so the browser's default paste action fires and lands in the terminal. That's why it works on Windows in 1.2.12 without Hide handling the key. The caveat: relying on the browser's default is platform- and context-dependent (some browsers/scenarios don't default-paste, and IME/focus edge cases differ), so the current behavior is somewhat fragile — it works now, but it isn't a guarantee Hide controls. On the PR you're considering
|
Uh oh!
There was an error while loading. Please reload this page.
On hide 1.2.12 on Windows, Shift+Insert pastes the Windows clipboard into a terminal of a paired Mac's screen, where Ctrl+Shift+V pastes nothing (#3097).
I could not find Shift+Insert in the docs or the practice chapters:
docs/ui-behavior/navigation.md("In a terminal") lists only Ctrl+Shift+V for Paste on Windows and Linux, and the site docs do not name the terminal's paste chord.As far as I can tell Hide does not handle the key itself: xterm.js sends nothing for Shift+Insert (
src/common/input/Keyboard.ts: " or + are used to copy-paste on some systems"), so the browser's own paste runs.Is Shift+Insert a chord Hide means to support?
If it is, would a pull request that adds it to that table and to the site docs be welcome?
If it is not, is it fine that it keeps working this way?
All reactions