Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/5400

Vanessacb663740e125
diff --git a/app/src/util/globalShortcut.ts b/app/src/util/globalShortcut.ts
index 98b70aa352..0fdefd6aab 100644
--- a/app/src/util/globalShortcut.ts
+++ b/app/src/util/globalShortcut.ts
@@ -448,6 +448,7 @@ export const globalShortcut = () => {
disableAnimation: true,
transparent: true,
});
+ getSelection().removeAllRanges();
if (isMac()) {
switchDialog.element.addEventListener("contextmenu", (event) => {
switchDialogEvent(event, switchDialog);