feat: 添加快捷键管理功能,支持全局和应用内快捷键的启用/禁用,优化快捷键配置界面

feat: #117
This commit is contained in:
algerkong
2025-04-05 20:33:34 +08:00
parent 541ff2b76c
commit c2983ba079
9 changed files with 484 additions and 174 deletions
+4
View File
@@ -25,6 +25,7 @@ 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();
@@ -101,6 +102,9 @@ if (isElectron) {
});
}
// 使用应用内快捷键
useAppShortcuts();
onMounted(async () => {
if (isLyricWindow.value) {
return;