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/10754

Vanessaccb51eadd038
diff --git a/app/electron/main.js b/app/electron/main.js
index c26d3e38d1..475c7fdfcd 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -75,7 +75,7 @@ const hotKey2Electron = (key) => {
if (key.indexOf("⌥") > -1) {
electronKey += "Alt+";
}
- return electronKey + key.substr(key.length - 1);
+ return electronKey + key.replace("⌘", "").replace("⇧", "").replace("⌥", "");
};
const exitApp = (port, errorWindowId) => {