An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/9950
Vanessa50b76c7294b6
diff --git a/app/src/boot/globalEvent/searchKeydown.ts b/app/src/boot/globalEvent/searchKeydown.tsindex 22a2e084b7..e9706cb06d 100644--- a/app/src/boot/globalEvent/searchKeydown.ts+++ b/app/src/boot/globalEvent/searchKeydown.ts@@ -55,8 +55,10 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {const isAsset = !assetsElement.classList.contains("fn__none");const listElement = isAsset ? assetsElement.querySelector("#searchAssetList") : element.querySelector("#searchList");const searchInputElement = element.querySelector("#searchInput") as HTMLInputElement;- if (!isAsset && matchHotKey(window.siyuan.config.keymap.general.newFile.custom, event) && config.method === 0) {- newFileByName(app, searchInputElement.value);+ if (!isAsset && matchHotKey(window.siyuan.config.keymap.general.newFile.custom, event)) {+ if (config.method === 0) {+ newFileByName(app, searchInputElement.value);+ }return true;}const targetId = (event.target as HTMLElement).id;