chore: Hotkey 系统遗留提交

This commit is contained in:
AncTe committed 2026-10-26 20:29:46 +08:00
1 parent 21dea3adf0
commit 4115753f1f
2 files changed
+2 -27

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import { IHotkeyEmitInfo, IHotkeySystem } from '@motajs/system';
import { IHotkeyUsing } from './types';
import { getCurrentInstance, onMounted, onUnmounted } from 'vue';
import { getCurrentInstance, onBeforeMount, onUnmounted } from 'vue';
import { logger } from '@motajs/common';
class HotkeyUsing implements IHotkeyUsing {
@@ -21,7 +21,7 @@ class HotkeyUsing implements IHotkeyUsing {
const { promise, resolve } = Promise.withResolvers<symbol>();
this.scopePromise = promise;
onMounted(() => {
onBeforeMount(() => {
this.mounted = true;
const scope = system.enterScope(clearImpl);
this.keyScope = scope;