Skip to content

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

:bug: Restore recent documents panel click navigation https://github.com/siyuan-note/siyuan/issues/19349

Daniel7c95b2d290fc
diff --git a/app/src/business/openRecentDocs.ts b/app/src/business/openRecentDocs.ts
index b117f31255..6408166f2b 100644
--- a/app/src/business/openRecentDocs.ts
+++ b/app/src/business/openRecentDocs.ts
@@ -140,7 +140,7 @@ export const openRecentDocs = () => {
if (liElement) {
dialog.element.querySelector(".b3-list-item--focus").classList.remove("b3-list-item--focus");
liElement.classList.add("b3-list-item--focus");
- window.dispatchEvent(new KeyboardEvent("keydown", {key: "Enter"}));
+ liElement.dispatchEvent(new KeyboardEvent("keydown", {key: "Enter", bubbles: true}));
event.stopPropagation();
event.preventDefault();
}