refactor: integrate keyboard functionality and clean up event handling

This commit is contained in:
PandaDEV 2025-03-13 15:29:02 +01:00
parent b2395e19a9
commit b6269c60c9
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
5 changed files with 55 additions and 27 deletions

View file

@ -9,13 +9,13 @@ import { listen } from "@tauri-apps/api/event";
import { app, window } from "@tauri-apps/api";
import { disable, enable } from "@tauri-apps/plugin-autostart";
import { onMounted } from "vue";
import { keyboard } from "wrdu-keyboard";
const keyboard = useKeyboard();
const { $settings } = useNuxtApp();
keyboard.init()
onMounted(async () => {
await listen("settings", async () => {
keyboard.clear();
await navigateTo("/settings");
await app.show();
await window.getCurrentWindow().show();