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: update Hotkey
Vanessafea6cf3a115c
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex 30c2c04ddc..c992e506d9 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -99,7 +99,8 @@ export const updateHotkeyTip = (hotkey: string) => {if (hotkey.indexOf("⇧") > -1) keys.push(KEY_MAP.get("⇧"));if (hotkey.indexOf("⌥") > -1) keys.push(KEY_MAP.get("⌥"));- const lastKey = hotkey.charAt(hotkey.length - 1);+ // 不能去最后一个,需匹配 F2+ const lastKey = hotkey.replace(/⌘|⇧|⌥/g, "");if ("⌘⇧⌥".indexOf(lastKey) < 0) {keys.push(KEY_MAP.get(lastKey)