修复快捷键设置框内的提示问题

pull/486/head
lyswhut 2021-04-26 15:17:01 +08:00
parent e95553163c
commit 4fe17e556e
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
### 修复
- 修复全局快捷键对桌面歌词无效的问题
- 修复快捷键设置框内的提示问题

View File

@ -983,7 +983,12 @@ export default {
await rendererInvoke(NAMES.hotKey.enable, true)
window.isEditingHotKey = false
this.isEditHotKey = false
const prevInput = hotKeyTargetInput
hotKeyTargetInput = null
if (prevInput.value == this.$t('view.setting.hot_key_tip_input')) {
prevInput.value = newHotKey ? this.formatHotKeyName(newHotKey) : ''
return
}
let config = this.hotKeyConfig[type][info.name]
let originKey
if (newHotKey) {