mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Add a shortcuts modal `?` and app-wide shortcuts: - Cmd+F: sidebar repo filter, pressed again: list search - Cmd+N: new issue, anywhere in a repo - Cmd+1…9: jump to the nth sidebar repo; holding Cmd shows the numbers on the repo avatars - Cmd+[ / Cmd+] (Alt+Left / Alt+Right elsewhere): back and forward - Cmd+R: reload, skipped while typing or in a modal with a text field Global shortcuts are ignored while typing in an input and, except for `?`, while a modal is open. Co-Authored-By: Rūdolfs Ošiņš <rudolfs@osins.org>
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import "overlayscrollbars/overlayscrollbars.css";
|
|
import { mount } from "svelte";
|
|
|
|
import App from "./App.svelte";
|
|
import { disableNativeContextMenu } from "./lib/disableNativeContextMenu";
|
|
|
|
const app = mount(App, { target: document.body });
|
|
|
|
disableNativeContextMenu();
|
|
|
|
export default app;
|