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/10899

Vanessa7b01685c5cc7
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts
index 001367a3c0..fb7ad9be4d 100644
--- a/app/src/protyle/wysiwyg/remove.ts
+++ b/app/src/protyle/wysiwyg/remove.ts
@@ -141,7 +141,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
}
// https://github.com/siyuan-note/siyuan/issues/5485
// https://github.com/siyuan-note/siyuan/issues/10389
- if (type === "remove" && sideIsNext) {
+ // https://github.com/siyuan-note/siyuan/issues/10899
+ if (type !== "Backspace" && sideIsNext) {
focusBlock(sideElement);
} else {
focusBlock(sideElement, undefined, false);