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/12468
Vanessa2f558b62cff3
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 2642f5ea7e..2bf7e8f951 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -882,7 +882,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {const inlineElement = hasClosestByMatchTag(range.startContainer, "SPAN");if (position.start === 2 && inlineElement &&getSelectionOffset(inlineElement, protyle.wysiwyg.element, range).start === 1 &&- inlineElement.innerText.startsWith(Constants.ZWSP)) {+ inlineElement.innerText.startsWith(Constants.ZWSP) &&+ // 需排除行内代码前有一个字符的情况+ editElement.innerText.startsWith(Constants.ZWSP)) {focusBlock(nodeElement);event.stopPropagation();event.preventDefault();