An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: When a window is inactive, pressing Shift and clicking the block icon fails to open the attribute panel (#16142)
Jeffrey Chen68cf4c601f86
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex eea0798255..8dbca467d3 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -88,7 +88,8 @@ ${padHTML}event.stopPropagation();break;} else if (type === "doc") {- if (window.siyuan.shiftIsPressed) {+ // 不使用 window.siyuan.shiftIsPressed ,否则窗口未激活时按 Shift 点击块标无法打开属性面板 https://github.com/siyuan-note/siyuan/issues/15075+ if (event.shiftKey) {fetchPost("/api/block/getDocInfo", {id: protyle.block.rootID}, (response) => {diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex c27427f74f..3b77bdeca7 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -404,7 +404,8 @@ export class Gutter {}}foldElement.classList.remove("protyle-wysiwyg--hl");- } else if (window.siyuan.shiftIsPressed && !protyle.disabled) {+ } else if (event.shiftKey && !protyle.disabled) {+ // 不使用 window.siyuan.shiftIsPressed ,否则窗口未激活时按 Shift 点击块标无法打开属性面板 https://github.com/siyuan-note/siyuan/issues/15075openAttr(protyle.wysiwyg.element.querySelector(`[data-node-id="${id}"]`), "bookmark", protyle);} else if (!window.siyuan.ctrlIsPressed && !window.siyuan.altIsPressed && !window.siyuan.shiftIsPressed) {this.renderMenu(protyle, buttonElement);