mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 08:16:10 +01:00
This commit is contained in:
parent
d670def52d
commit
7d57bd07e7
1 changed files with 2 additions and 2 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue