From f985c543460bd876b42579eb8a48c534a7d06e55 Mon Sep 17 00:00:00 2001 From: Kraust Date: Sun, 31 Aug 2025 10:39:28 -0400 Subject: [PATCH] Disable the system right click menu when in focus of the terminal. --- server/static/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/static/client.js b/server/static/client.js index 991110d..7d491bd 100644 --- a/server/static/client.js +++ b/server/static/client.js @@ -263,7 +263,11 @@ class NeovimClient { terminal.focus(); }); - // Enhance the focus handler to always sync clipboard + terminal.addEventListener("contextmenu", (event) => { + event.preventDefault(); + event.stopPropagation(); + }); + terminal.addEventListener("focus", () => { if (this.connected && this.clipboardEnabled) { this.sendClipboardToNeovim();