We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bddbf3 commit e240846Copy full SHA for e240846
src/main.tsx
@@ -12,4 +12,30 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
12
</React.StrictMode>
13
);
14
15
-appWindow.show().then(() => {});
+appWindow.show().then(() => {
16
+ const disableMenu = () => {
17
+ if (window.location.hostname !== "tauri.localhost") {
18
+ return;
19
+ }
20
+
21
+ document.addEventListener(
22
+ "contextmenu",
23
+ (e) => {
24
+ e.preventDefault();
25
+ return false;
26
+ },
27
+ { capture: true }
28
+ );
29
30
31
+ "selectstart",
32
33
34
35
36
37
38
+ };
39
40
+ disableMenu();
41
+});
0 commit comments