An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/11720
Vanessad29174ca7688
diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.tsindex 0cf12e2619..d46efe0db9 100644--- a/app/src/config/keymap.ts+++ b/app/src/config/keymap.ts@@ -428,12 +428,15 @@ export const keymap = {keys[1] = "headings";}let hasConflict = false;- if (["⌘", "⇧", "⌥", "⌃"].includes(keymapStr.substr(keymapStr.length - 1, 1)) ||+ const isAssistKey = ["⌘", "⇧", "⌥", "⌃"].includes(keymapStr.substr(keymapStr.length - 1, 1))+ if (isAssistKey ||["⌘A", "⌘X", "⌘C", "⌘V", "⌘-", "⌘=", "⌘0", "⇧⌘V", "⌘/", "⇧↑", "⇧↓", "⇧→", "⇧←", "⇧⇥", "⌃D", "⇧⌘→", "⇧⌘←", "⌘Home", "⌘End", "⇧↩", "↩", "PageUp", "PageDown", "⌫", "⌦", "Escape"].includes(keymapStr) ||// 跳转到下/上一个编辑页签不能包含 ctrl, 否则不能监听到 keyup(isMac() && keys[0] === "general" && ["goToEditTabNext", "goToEditTabPrev"].includes(keys[1]) && keymapStr.includes("⌘"))) {- showMessage(`${window.siyuan.languages.invalid} [${adoptKeymapStr}]`);+ if (!isAssistKey) {+ showMessage(`${window.siyuan.languages.invalid} [${adoptKeymapStr}]`);+ }hasConflict = true;}Array.from(keymap.element.querySelectorAll("label.b3-list-item input")).find((inputItem: HTMLElement) => {