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/7470

Vanessa73cb847d1d01
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 5dafc88bd0..881f49d1d2 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -88,6 +88,11 @@ const switchDialogEvent = (event: MouseEvent, switchDialog: Dialog) => {
};
export const globalShortcut = () => {
+ document.body.addEventListener("mouseleave", (event) => {
+ window.siyuan.layout.leftDock.hideDock();
+ window.siyuan.layout.rightDock.hideDock();
+ window.siyuan.layout.bottomDock.hideDock();
+ });
window.addEventListener("mousemove", (event: MouseEvent & { target: HTMLElement }) => {
if (window.siyuan.hideBreadcrumb) {
document.querySelectorAll(".protyle-breadcrumb__bar--hide").forEach(item => {