From 654c2a47a7a12f2fd226130a669bfd998242ee29 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 22 Oct 2023 12:13:46 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9475 --- app/src/config/keymap.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts index 124af3ce3..093a470b2 100644 --- a/app/src/config/keymap.ts +++ b/app/src/config/keymap.ts @@ -374,7 +374,7 @@ export const keymap = { hasConflict = true; } Array.from(keymap.element.querySelectorAll("label.b3-list-item input")).find((inputItem: HTMLElement) => { - if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === adoptKeymapStr) { + if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === keymapStr) { const inputValueList = inputItem.getAttribute("data-key").split(Constants.ZWSP); if (inputValueList[1] === "list") { inputValueList[1] = "list1"; @@ -388,10 +388,10 @@ export const keymap = { } }); if (hasConflict) { - this.value = this.getAttribute("data-value"); + this.value = updateHotkeyTip(this.getAttribute("data-value")); return; } - this.setAttribute("data-value", adoptKeymapStr); + this.setAttribute("data-value", keymapStr); this.value = adoptKeymapStr; keymap._setkeymap(app); }, 1000);