mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00: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) {
|
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {
|
||||||
let ctrlElement = nodeElement;
|
let ctrlElement = nodeElement;
|
||||||
if (!hasSelectClassElement && galleryItemElement) {
|
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");
|
galleryItemElement.classList.toggle("av__gallery-item--select");
|
||||||
|
} else if (rowElement) {
|
||||||
|
selectRow(rowElement.querySelector(".av__firstcol"), "toggle");
|
||||||
|
}
|
||||||
} else if (ctrlElement) {
|
} else if (ctrlElement) {
|
||||||
const embedBlockElement = isInEmbedBlock(ctrlElement);
|
const embedBlockElement = isInEmbedBlock(ctrlElement);
|
||||||
if (embedBlockElement) {
|
if (embedBlockElement) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue