aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-07-15 11:27:04 +0200
committerGitHub <noreply@github.com>2025-07-15 11:27:04 +0200
commitdcd185d4993cceb2b2712fc0f085d465ec74ce92 (patch)
treebb44746887f240ce9cd3a126a6813ae3547f64f9
parentdocs(changelog): cmd/cwd fixes (diff)
downloadsl0ppij-dcd185d4993cceb2b2712fc0f085d465ec74ce92.tar.gz
sl0ppij-dcd185d4993cceb2b2712fc0f085d465ec74ce92.tar.xz
sl0ppij-dcd185d4993cceb2b2712fc0f085d465ec74ce92.zip
fix(web): allow pasting with ctrl-shift-v (#4291)
-rw-r--r--zellij-client/assets/input.js4
1 files changed, 4 insertions, 0 deletions
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;