An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Ensure the editor AI shortcut works after UI reload https://github.com/siyuan-note/siyuan/issues/18928
Danieleb579f2177dc
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 81772d681b..633af9e7bd 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1853,7 +1853,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {if ((!nodeElement.classList.contains("code-block") || isCrossBlock) && !event.repeat) {let findToolbar = false;protyle.options.toolbar.find((menuItem: IMenuItem) => {- if (!menuItem.hotkey) {+ if (!menuItem.hotkey || menuItem.name === "ai") {return false;}if (matchHotKey(menuItem.hotkey, event)) {