From caea24b62b78aee60346433d695bb6fae3c5d7be Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 24 Sep 2022 12:08:39 +0800 Subject: [PATCH] :sparkles: fix https://github.com/siyuan-note/siyuan/pull/5938 --- app/src/config/keymap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts index 48bc18e39..9d004f157 100644 --- a/app/src/config/keymap.ts +++ b/app/src/config/keymap.ts @@ -139,7 +139,7 @@ export const keymap = { keymap.element.querySelectorAll("#keymapList .b3-list-item--hide-action > .b3-list-item__text").forEach(item => { const liElement = item.parentElement let matchedKeymap = false; - if (keymapString === "" || keymapString === (item.nextElementSibling.nextElementSibling as HTMLInputElement).value) { + if (keymapString === "" || (item.nextElementSibling.nextElementSibling as HTMLInputElement).value.indexOf(updateHotkeyTip(keymapString)) > -1) { matchedKeymap = true } if ((item.textContent.toLowerCase().indexOf(value.toLowerCase()) > -1 || value === "") && matchedKeymap) {