mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
🔧 chore: 移除不再使用的快捷键初始化功能
This commit is contained in:
@@ -26,7 +26,6 @@ import { isElectron, isLyricWindow } from '@/utils';
|
|||||||
import { initAudioListeners } from './hooks/MusicHook';
|
import { initAudioListeners } from './hooks/MusicHook';
|
||||||
import { isMobile } from './utils';
|
import { isMobile } from './utils';
|
||||||
import { useAppShortcuts } from './utils/appShortcuts';
|
import { useAppShortcuts } from './utils/appShortcuts';
|
||||||
import { initShortcut } from './utils/shortcut';
|
|
||||||
|
|
||||||
const { locale } = useI18n();
|
const { locale } = useI18n();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
@@ -120,8 +119,6 @@ onMounted(async () => {
|
|||||||
window.api.sendSong(cloneDeep(playerStore.playMusic));
|
window.api.sendSong(cloneDeep(playerStore.playMusic));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 初始化快捷键
|
|
||||||
initShortcut();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user