An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5379
Vanessaaef01e114813
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.tsindex eeead8d071..847b707e09 100644--- a/app/src/util/globalShortcut.ts+++ b/app/src/util/globalShortcut.ts@@ -552,8 +552,16 @@ export const globalShortcut = () => {event.stopPropagation();let activeTabElement = document.querySelector(".block__icons--active");if (activeTabElement && activeTabElement.getBoundingClientRect().width > 0) {- const type = activeTabElement.parentElement.className.split("sy__")[1] as TDockType;- getDockByType(type).toggleModel(type, false, true);+ let type: TDockType+ Array.from(activeTabElement.parentElement.classList).find(item => {+ if (item.startsWith("sy__")) {+ type = item.replace("sy__", "") as TDockType;+ return true;+ }+ });+ if (type) {+ getDockByType(type).toggleModel(type, false, true);+ }return;}activeTabElement = document.querySelector(".layout__wnd--active .item--focus");