From 7b01685c5cc7aa675e948f821bbb94df6fc0cdd8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 5 Apr 2024 22:21:29 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10899 --- app/src/protyle/wysiwyg/remove.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.ts index 001367a3c..fb7ad9be4 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);