Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16241

Vanessa2994a9593738
diff --git a/app/src/boot/globalEvent/commonHotkey.ts b/app/src/boot/globalEvent/commonHotkey.ts
index 964eb1932e..fc9231146c 100644
--- a/app/src/boot/globalEvent/commonHotkey.ts
+++ b/app/src/boot/globalEvent/commonHotkey.ts
@@ -150,7 +150,7 @@ export const filterHotkey = (event: KeyboardEvent, app: App) => {
}
if (cardElement) {
event.preventDefault();
- cardElement.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()}));
+ cardElement.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()}));
return true;
}
}