An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Restore Shift-click database row selection https://github.com/siyuan-note/siyuan/issues/18623
Daniel2aa12ce585ae
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex e12d582d99..066131c13a 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1064,6 +1064,7 @@ export class WYSIWYG {}const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");const galleryItemElement = hasClosestByClassName(target, "av__gallery-item");+ const rowElement = hasClosestByClassName(target, "av__row");const avCellElement = hasClosestByClassName(target, "av__cell");const wysiwygRect = protyle.wysiwyg.element.getBoundingClientRect();const wysiwygStyle = window.getComputedStyle(protyle.wysiwyg.element);@@ -1090,8 +1091,9 @@ export class WYSIWYG {event.stopPropagation();return;}- if (!hasSelectClassElement && galleryItemElement &&- selectAVItemRange(nodeElement, galleryItemElement as HTMLElement)) {+ const itemElement = galleryItemElement ||+ (rowElement && !rowElement.classList.contains("av__row--header") ? rowElement : false);+ if (!hasSelectClassElement && itemElement && selectAVItemRange(nodeElement, itemElement)) {focusBlock(nodeElement);this.preventClick = true;event.preventDefault();@@ -1115,7 +1117,6 @@ export class WYSIWYG {}if (isOnlyMeta(event) && !event.shiftKey && !event.altKey && !startsFromPadding) {let ctrlElement = nodeElement;- const rowElement = hasClosestByClassName(target, "av__row");if (!hasSelectClassElement && (galleryItemElement || (rowElement && !rowElement.classList.contains("av__row--header")))) {if (galleryItemElement) {const galleryBodyElement = hasClosestByClassName(galleryItemElement, "av__body") as HTMLElement;