From e597a68405bfa4363d52cbf698226612d43232e5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 13 Nov 2023 00:37:38 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9642 --- app/src/protyle/wysiwyg/commonHotkey.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index 886c693b5..fd01f0ae4 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;