From dcd185d4993cceb2b2712fc0f085d465ec74ce92 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 15 Jul 2025 11:27:04 +0200 Subject: [PATCH] fix(web): allow pasting with ctrl-shift-v (#4291) --- zellij-client/assets/input.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zellij-client/assets/input.js b/zellij-client/assets/input.js index 4bc0b1bb..fc01a389 100644 --- a/zellij-client/assets/input.js +++ b/zellij-client/assets/input.js @@ -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;