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/11729
Vanessa4feb8a67c1cc
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.tsindex 0279d02d29..36f0e899ef 100644--- a/app/src/protyle/header/Title.ts+++ b/app/src/protyle/header/Title.ts@@ -103,13 +103,17 @@ export class Title {return;}if (event.key === "ArrowDown") {- const noContainerElement = getNoContainerElement(protyle.wysiwyg.element.firstElementChild);- // https://github.com/siyuan-note/siyuan/issues/4923- if (noContainerElement) {- focusBlock(noContainerElement, protyle.wysiwyg.element);+ const rects = getSelection().getRangeAt(0).getClientRects()+ // https://github.com/siyuan-note/siyuan/issues/11729+ if (this.editElement.getBoundingClientRect().bottom - rects[rects.length - 1].bottom < 25) {+ const noContainerElement = getNoContainerElement(protyle.wysiwyg.element.firstElementChild);+ // https://github.com/siyuan-note/siyuan/issues/4923+ if (noContainerElement) {+ focusBlock(noContainerElement, protyle.wysiwyg.element);+ }+ event.preventDefault();+ event.stopPropagation();}- event.preventDefault();- event.stopPropagation();} else if (event.key === "Enter") {const newId = Lute.NewNodeID();const newElement = genEmptyElement(false, true, newId);