Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: fix https://github.com/siyuan-note/siyuan/pull/5938

Vanessacaea24b62b78
diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts
index 48bc18e392..9d004f1576 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) {