diff --git a/publish/changeLog.md b/publish/changeLog.md index 3a849765..25cee2de 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,7 @@ ### 优化 - 优化kw源英文与翻译歌词的匹配 + +### 修复 + +- 修复快捷键与默认按键行为冲突的问题,现在若将某些有默认行为的按键(如在列表中上、下箭头、Home、End等键可以使列表滚动)设置为快捷键时,将禁用其默认行为 diff --git a/src/renderer/event/index.js b/src/renderer/event/index.js index 665a3eef..6f974efc 100644 --- a/src/renderer/event/index.js +++ b/src/renderer/event/index.js @@ -25,6 +25,7 @@ eventHub.on(baseName.bindKey, () => { eventHub.emit(baseName.key_down, { event, keys, key, type }) // console.log(event, key) if (!window.isEditingHotKey && appHotKeyConfig.local.enable && appHotKeyConfig.local.keys[key]) { + event.preventDefault() if (type == 'up') return // 软件内快捷键的最小化触发时