Skip to content

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

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Daniele9d73eb1dc2f
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 046ae481cc..22f9fed5f3 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -388,7 +388,9 @@ export class Dock {
return;
}
// https://github.com/siyuan-note/siyuan/issues/7504
- if (document.activeElement && this.layout.element.contains(document.activeElement) && document.activeElement.classList.contains("b3-text-field")) {
+ if (document.activeElement && this.layout.element.contains(document.activeElement) &&
+ (document.activeElement.classList.contains("b3-text-field") ||
+ (document.activeElement as HTMLElement).getAttribute("contenteditable") === "true")) {
return;
}
const dialogElement = document.querySelector(".b3-dialog") as HTMLElement;