Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15424

Vanessa85800b8085f4
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index a99751625e..26dd2a9756 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -964,7 +964,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
event.preventDefault();
return;
}
- // https://github.com/siyuan-note/siyuan/issues/15424
+ // 1`2` 1后按 Backspace 光标错误 https://github.com/siyuan-note/siyuan/issues/15424
if (position.start === 1 && rangeNextElement && rangeNextElement.nodeType === 1 &&
rangeNextElement.dataset.type === "code") {
range.insertNode(document.createTextNode(Constants.ZWSP));