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:
Vanessa43ec0a299725
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex 0047095220..290d294d5a 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -138,12 +138,12 @@ export const updateHotkeyTip = (hotkey: string) => {const keys = [];- if (hotkey.indexOf("⌘") > -1) keys.push(KEY_MAP.get("⌘"));+ if ((hotkey.indexOf("⌘") > -1 || hotkey.indexOf("⌃") > -1)) keys.push(KEY_MAP.get("⌘"));if (hotkey.indexOf("⇧") > -1) keys.push(KEY_MAP.get("⇧"));if (hotkey.indexOf("⌥") > -1) keys.push(KEY_MAP.get("⌥"));// 不能去最后一个,需匹配 F2- const lastKey = hotkey.replace(/⌘|⇧|⌥/g, "");+ const lastKey = hotkey.replace(/⌘|⇧|⌥|⌃/g, "");if (lastKey) {keys.push(KEY_MAP.get(lastKey) || lastKey);}