Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/6729

Vanessa40c56d140048
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 7c18fae879..db50714e40 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -281,6 +281,10 @@ export const globalShortcut = () => {
currentLiElement.parentElement.parentElement.nextElementSibling.innerHTML = currentLiElement.querySelector(".b3-list-item__text").innerHTML;
}
}
+ const originalElement = switchDialog.element.querySelector('[data-original="true"]');
+ if (originalElement) {
+ originalElement.removeAttribute("data-original")
+ }
} else if (event.key === "Control") {
let currentLiElement = switchDialog.element.querySelector(".b3-list-item--focus");
// 快速切换时,不触发 Tab