🎨 shift+click 失效

This commit is contained in:
Vanessa 2025-07-03 10:46:50 +08:00
parent 0608dd0b80
commit 46b4406806

View file

@ -493,6 +493,7 @@ export class WYSIWYG {
previousList.concat(nextList).forEach(item => {
item.classList.add("av__gallery-item--select");
});
event.preventDefault();
} else if (startElement && endElement && !startElement.isSameNode(endElement)) {
let toDown = true;
const startRect = startElement.getBoundingClientRect();
@ -581,8 +582,8 @@ export class WYSIWYG {
focusBlock(selectElements[0], protyle.wysiwyg.element, false);
}
}
event.preventDefault();
}
event.preventDefault();
return;
}
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {