From d445c5401ffb4a1b2fcf01abc062734efc6c6cb2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 13 Oct 2023 21:54:35 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9421 --- app/src/protyle/render/av/action.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index c3502ac79..f0bee3e75 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -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());