diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index eea079825..8dbca467d 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.ts index c27427f74..3b77bdeca 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/15075 openAttr(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);