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();