mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
0c4aee7388
commit
d445c5401f
1 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,14 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
|||
if (!blockElement) {
|
||||
return false;
|
||||
}
|
||||
if (event.shiftKey) {
|
||||
const rowElement = hasClosestByClassName(event.target, "av__row");
|
||||
if (rowElement && !rowElement.classList.contains("av__row--header")) {
|
||||
selectRow(rowElement.querySelector(".av__firstcol"), "toggle");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
const copyElement = hasClosestByAttribute(event.target, "data-type", "copy");
|
||||
if (copyElement) {
|
||||
writeText(copyElement.previousElementSibling.textContent.trim());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue