mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 07:58:11 +08:00
@@ -1,9 +1,11 @@
|
||||
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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user