diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index b3ab2c815..27708c3c5 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -1375,7 +1375,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { event.preventDefault(); event.stopPropagation(); const selectsElement: HTMLElement[] = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select")); - if (selectsElement.length < 2) { + if (selectsElement.length < 2 || selectsElement[0]?.classList.contains("li")) { return; } turnsIntoOneTransaction({ @@ -1390,7 +1390,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { event.preventDefault(); event.stopPropagation(); const selectsElement: HTMLElement[] = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select")); - if (selectsElement.length < 2) { + if (selectsElement.length < 2 || selectsElement[0]?.classList.contains("li")) { return; } turnsIntoOneTransaction({