mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
14 lines
581 B
TypeScript
14 lines
581 B
TypeScript
import { createApp } from "vue";
|
|
import { fullscreenModeChanged } from "@/utilities/fullscreen";
|
|
import { handleKeyUp, handleKeyDown } from "@/utilities/input";
|
|
import App from "@/App.vue";
|
|
|
|
// Bind global browser events
|
|
document.addEventListener("contextmenu", (e) => e.preventDefault());
|
|
document.addEventListener("fullscreenchange", () => fullscreenModeChanged());
|
|
window.addEventListener("keyup", (e: KeyboardEvent) => handleKeyUp(e));
|
|
window.addEventListener("keydown", (e: KeyboardEvent) => handleKeyDown(e));
|
|
|
|
// Initialize the Vue application
|
|
createApp(App).mount("#app");
|