From 83acfb8286fc4c286e4540de522a9d3468b00e90 Mon Sep 17 00:00:00 2001 From: RinYato Date: Sat, 27 Apr 2024 08:09:48 +0700 Subject: [PATCH] fix(gui): stop safari from opening the native menu (#89) --- gui/src/components/context-menu-handler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/context-menu-handler.tsx b/gui/src/components/context-menu-handler.tsx index 9d05f8cb..dbd01c6d 100644 --- a/gui/src/components/context-menu-handler.tsx +++ b/gui/src/components/context-menu-handler.tsx @@ -89,7 +89,7 @@ export default function ContextMenuHandler() { if (menu && contextRef.current) { const ev = new MouseEvent("contextmenu", { bubbles: true, - cancelable: false, + cancelable: true, view: window, button: 2, buttons: 2,