diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 38aec34..dcea524 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,5 +1,5 @@ diff --git a/frontend/src/components/general/AppInfoOverlay.vue b/frontend/src/components/general/AppInfoOverlay.vue index a405767..a2c2841 100644 --- a/frontend/src/components/general/AppInfoOverlay.vue +++ b/frontend/src/components/general/AppInfoOverlay.vue @@ -3,27 +3,11 @@ import { version } from "@frontend/package.json" with { type: "json" } import { CardOverlay } from "@components" import { useDialog } from "@composables" -import { onMounted, onUnmounted } from "vue" const { setVisible, visible, closable, draggable } = useDialog('app-info') - -const onEscape = (e: KeyboardEvent) => { - if (!visible.value) return - if (e.key == "Escape") setVisible(false) - - console.log(e) -} - -onMounted(() => { - window.addEventListener("keydown", onEscape) -}) - -onUnmounted(() => { - window.removeEventListener("keydown", onEscape) -})