mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
be7ac73904
commit
85800b8085
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue