]> git.proxmox.com Git - mirror_xterm.js.git/commit - src/xterm.js
Fix Ctrl/Shift + insert copy/paste
authorrunarberg <runar@greenqloud.com>
Thu, 9 Jun 2016 13:05:50 +0000 (13:05 +0000)
committerrunarberg <runar@greenqloud.com>
Thu, 9 Jun 2016 13:45:02 +0000 (13:45 +0000)
commit524db02228f4bf9eababb7f2932f2ed898147bc7
treea0443a62092a6803a3f13ee531e87f91b5c7ddab
parentcf9d2348a1c315f0c8d46000550e7bc91ac18121
Fix Ctrl/Shift + insert copy/paste

Many systems (including MS Windows and many linuxes) map `<Ctrl>` +
`<Insert>` to copy and `<Shift> + <Insert>` to paste. That serves as a
handy fallback when the more common `<Ctrl> + C` and `<Ctrl> + V`
keybindings have their default prevented to send signals to the
terminal.

Currently all keydown-events with the insert key send `\x1b[2~` to the
terminal. This commit won't send that key if either the `shiftKey` or
the `ctrlKey` are present. Instead it will enable `contentEditable` to
allow for pasting.
src/xterm.js