修复快捷键与默认按键行为冲突的问题

pull/930/merge
lyswhut 2022-01-27 09:31:28 +08:00
parent 81ed70d291
commit f5ce46431b
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
### 优化
- 优化kw源英文与翻译歌词的匹配
### 修复
- 修复快捷键与默认按键行为冲突的问题现在若将某些有默认行为的按键如在列表中上、下箭头、Home、End等键可以使列表滚动设置为快捷键时将禁用其默认行为

View File

@ -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
// 软件内快捷键的最小化触发时