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

Vanessad6c290954efc
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.ts
index 6f95cc192d..59f4850057 100644
--- a/app/src/boot/globalEvent/keydown.ts
+++ b/app/src/boot/globalEvent/keydown.ts
@@ -1221,7 +1221,7 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
}
if (window.siyuan.dialogs.length > 0) {
- hideElements(["dialog"]);
+ window.siyuan.dialogs[window.siyuan.dialogs.length - 1].destroy();
return;
}