fix(web): allow pasting with ctrl-shift-v (#4291)

This commit is contained in:
Aram Drevekenin 2025-07-15 11:27:04 +02:00 committed by GitHub
parent 1c3fd7d88e
commit dcd185d499
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,10 @@ export function setupInputHandlers(term, sendFunction) {
// Custom key event handler
term.attachCustomKeyEventHandler((ev) => {
if (ev.type === "keydown") {
if (ev.key == "V" && ev.ctrlKey && ev.shiftKey) {
// pass ctrl-shift-v onwards so that paste is interpreted by xterm.js
return;
}
let modifiers_count = 0;
let shift_keycode = 16;
let alt_keycode = 17;