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

This commit is contained in:
lyswhut
2021-04-26 15:17:01 +08:00
parent e95553163c
commit 4fe17e556e
2 changed files with 6 additions and 0 deletions
+5
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) {