Files
radicle-explorer/src/main.ts
T
Rūdolfs Ošiņš 67108bd443 Disable native context menu
Prevents the browser/webview default context menu app-wide, while
preserving it for text selections and editable fields where the
native menu is still useful.
2026-05-14 14:58:06 +02:00

16 lines
432 B
TypeScript

import "overlayscrollbars/overlayscrollbars.css";
import { hotkeyKeyUX, hotkeyMacCompat, startKeyUX } from "keyux";
import { mount } from "svelte";
import App from "./App.svelte";
import { disableNativeContextMenu } from "./lib/disableNativeContextMenu";
const app = mount(App, { target: document.body });
disableNativeContextMenu();
const mac = hotkeyMacCompat();
startKeyUX(window, [hotkeyKeyUX([mac])]);
export default app;