This commit is contained in:
Vanessa 2024-10-29 23:01:31 +08:00
parent 24856a1c84
commit 7e37563fcd
12 changed files with 26 additions and 28 deletions

View file

@ -265,7 +265,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
/// #if !MOBILE
const blockId = rowElements[0].getAttribute("data-id");
const openSubmenus = openEditorTab(protyle.app, [blockId], undefined, undefined, true);
openSubmenus.push({type: "separator"})
openSubmenus.push({type: "separator"});
openSubmenus.push({
icon: "iconAttr",
label: window.siyuan.languages.attr,
@ -274,7 +274,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
openFileAttr(response.data, "av", protyle);
});
}
})
});
menu.addItem({
id: "openBy",
label: window.siyuan.languages.openBy,

View file

@ -43,7 +43,7 @@ export const avKeydown = (event: KeyboardEvent, nodeElement: HTMLElement, protyl
nodeElement.querySelectorAll(".av__cell--select, .av__cell--active").forEach(item => {
item.classList.remove("av__cell--select", "av__cell--active");
item.querySelector(".av__drag-fill")?.remove();
})
});
selectRow(rowElement.querySelector(".av__firstcol"), "select");
event.preventDefault();
return true;