mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 07:38:12 +08:00
Frontend refactor to move response handler, key input handling, and more into new utilities folder (#260)
Part of #124
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { createApp } from "vue";
|
||||
import { handleKeyUp, handleKeyDown } from "@/utilities/input";
|
||||
import App from "./App.vue";
|
||||
import { attachResponseHandlerToPage } from "./response-handler";
|
||||
|
||||
// Bind global browser events
|
||||
document.addEventListener("contextmenu", (e) => e.preventDefault());
|
||||
window.addEventListener("keyup", (e: KeyboardEvent) => handleKeyUp(e));
|
||||
window.addEventListener("keydown", (e: KeyboardEvent) => handleKeyDown(e));
|
||||
|
||||
attachResponseHandlerToPage();
|
||||
|
||||
// Initialize the Vue application
|
||||
createApp(App).mount("#app");
|
||||
|
||||
Reference in New Issue
Block a user