🔧 chore: 移除不再使用的快捷键初始化功能

This commit is contained in:
algerkong
2025-04-23 09:05:24 +08:00
parent 1865bd95bc
commit 2c5bfac439
2 changed files with 0 additions and 13 deletions

View File

@@ -26,7 +26,6 @@ import { isElectron, isLyricWindow } from '@/utils';
import { initAudioListeners } from './hooks/MusicHook';
import { isMobile } from './utils';
import { useAppShortcuts } from './utils/appShortcuts';
import { initShortcut } from './utils/shortcut';
const { locale } = useI18n();
const settingsStore = useSettingsStore();
@@ -120,8 +119,6 @@ onMounted(async () => {
window.api.sendSong(cloneDeep(playerStore.playMusic));
}
}
// 初始化快捷键
initShortcut();
});
</script>

View File

@@ -1,10 +0,0 @@
import { isElectron } from '.';
import { handleShortcutAction } from './appShortcuts';
export function initShortcut() {
if (isElectron) {
window.electron.ipcRenderer.on('global-shortcut', async (_, action: string) => {
handleShortcutAction(action);
});
}
}