From 4fe17e556e9c006a3dc1af338ab950c85b30e88f Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 26 Apr 2021 15:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=A1=86=E5=86=85=E7=9A=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/views/Setting.vue | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/publish/changeLog.md b/publish/changeLog.md index 8075aa08..a07a4a6a 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,4 @@ ### 修复 - 修复全局快捷键对桌面歌词无效的问题 +- 修复快捷键设置框内的提示问题 diff --git a/src/renderer/views/Setting.vue b/src/renderer/views/Setting.vue index 323329c8..e4d4b80f 100644 --- a/src/renderer/views/Setting.vue +++ b/src/renderer/views/Setting.vue @@ -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) {