Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/3499

Vanessa79b87b25ade2
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 419d436c9e..b7a99012ff 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -836,7 +836,7 @@ export const globalShortcut = () => {
if (!floatDockLayoutElement.isSameNode(window.siyuan.layout.rightDock.layout.element)) {
window.siyuan.layout.rightDock.hideDock();
}
- } else {
+ } else if (!hasClosestByClassName(event.target, "dock")) {
window.siyuan.layout.topDock.hideDock();
window.siyuan.layout.bottomDock.hideDock();
window.siyuan.layout.leftDock.hideDock();