mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
e777e178d2
commit
64e580157b
1 changed files with 2 additions and 1 deletions
|
|
@ -691,7 +691,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
}
|
||||
}
|
||||
if (event.key === "ArrowDown") {
|
||||
if (nodeElement.isSameNode(protyle.wysiwyg.element.lastElementChild)) {
|
||||
if (nodeEditableElement?.textContent.trimRight().substr(position.start).indexOf("\n") === -1 &&
|
||||
nodeElement.isSameNode(protyle.wysiwyg.element.lastElementChild)) {
|
||||
setLastNodeRange(getContenteditableElement(nodeEditableElement), range, false);
|
||||
range.collapse(false);
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue