Skip to content

Commit 5b574fd

Browse files
authored
Merge pull request #1 from Kraust/topic/disable-right-click
Disable the system right click menu when in focus of the terminal.
2 parents 0ca092c + f985c54 commit 5b574fd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/static/client.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,11 @@ class NeovimClient {
263263
terminal.focus();
264264
});
265265

266-
// Enhance the focus handler to always sync clipboard
266+
terminal.addEventListener("contextmenu", (event) => {
267+
event.preventDefault();
268+
event.stopPropagation();
269+
});
270+
267271
terminal.addEventListener("focus", () => {
268272
if (this.connected && this.clipboardEnabled) {
269273
this.sendClipboardToNeovim();

0 commit comments

Comments
 (0)