mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
ce4ab75c9e
commit
a83476a2a7
1 changed files with 7 additions and 2 deletions
|
|
@ -655,8 +655,13 @@ export class WYSIWYG {
|
|||
}
|
||||
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
|
||||
let ctrlElement = nodeElement;
|
||||
if (!hasSelectClassElement && galleryItemElement) {
|
||||
galleryItemElement.classList.toggle("av__gallery-item--select");
|
||||
const rowElement = hasClosestByClassName(target, "av__row");
|
||||
if (!hasSelectClassElement && (galleryItemElement || (rowElement && !rowElement.classList.contains("av__row--header")))) {
|
||||
if (galleryItemElement) {
|
||||
galleryItemElement.classList.toggle("av__gallery-item--select");
|
||||
} else if (rowElement) {
|
||||
selectRow(rowElement.querySelector(".av__firstcol"), "toggle");
|
||||
}
|
||||
} else if (ctrlElement) {
|
||||
const embedBlockElement = isInEmbedBlock(ctrlElement);
|
||||
if (embedBlockElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue