From 32d953219a41a3c9bd09ef9f9461084284fa4fd8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 13 Jun 2022 16:30:51 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5172 --- app/src/config/keymap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts index 8926225cd..d50f99da6 100644 --- a/app/src/config/keymap.ts +++ b/app/src/config/keymap.ts @@ -108,7 +108,7 @@ export const keymap = { }, _setkeymap() { const data: IKeymap = Object.assign({}, Constants.SIYUAN_KEYMAP); - keymap.element.querySelectorAll("input").forEach((item) => { + keymap.element.querySelectorAll("ul input").forEach((item) => { const keys = item.getAttribute("data-key").split(Constants.ZWSP); if (keys[0] === "general") { data[keys[0]][keys[1]].custom = item.getAttribute("data-value"); @@ -268,7 +268,7 @@ export const keymap = { showMessage(tip + "] " + window.siyuan.languages.invalid); return; } - const hasConflict = Array.from(keymap.element.querySelectorAll("input")).find(inputItem => { + const hasConflict = Array.from(keymap.element.querySelectorAll("ul input")).find(inputItem => { if (!inputItem.isSameNode(this) && inputItem.getAttribute("data-value") === keymapStr) { const inputValueList = inputItem.getAttribute("data-key").split(Constants.ZWSP); if (inputValueList[1] === "list") {