Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9642

Vanessae597a68405bf
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts
index 886c693b57..fd01f0ae49 100644
--- a/app/src/protyle/wysiwyg/commonHotkey.ts
+++ b/app/src/protyle/wysiwyg/commonHotkey.ts
@@ -301,7 +301,14 @@ export const goEnd = (protyle: IProtyle) => {
mode: 4,
size: window.siyuan.config.editor.dynamicLoadBlocks,
}, getResponse => {
- onGet({data: getResponse, protyle, action: [Constants.CB_GET_FOCUS]});
+ onGet({
+ data: getResponse,
+ protyle,
+ action: [Constants.CB_GET_FOCUS],
+ afterCB() {
+ focusBlock(protyle.wysiwyg.element.lastElementChild, undefined, false);
+ }
+ });
});
} else {
protyle.contentElement.scrollTop = protyle.contentElement.scrollHeight;