mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -763,6 +763,16 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (selectText === "" && event.key === "ArrowLeft" && position.start === 1 &&
|
||||
range.startContainer.textContent === Constants.ZWSP) {
|
||||
range.setStart(range.startContainer, 0);
|
||||
range.collapse(true);
|
||||
}
|
||||
if (selectText === "" && event.key === "ArrowRight" && position.start === 0 &&
|
||||
range.startContainer.textContent === Constants.ZWSP) {
|
||||
range.setStart(range.startContainer, 1);
|
||||
range.collapse(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user