An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/pull/16282
Vanessa75da247b2313
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex fd8e713bf1..d3e76b89ab 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -334,28 +334,23 @@ export const updateHotkeyAfterTip = (hotkey: string) => {return "";};-const KEY_MAP = new Map([- ["⌘", "Ctrl"],- ["⌃", "Ctrl"],- ["⇧", "Shift"],- ["⌥", "Alt"],- ["⇥", "Tab"],- ["⌫", "Backspace"],- ["⌦", "Delete"],- ["↩", "Enter"],-]);-// Mac,Windows 快捷键展示export const updateHotkeyTip = (hotkey: string) => {- if (!hotkey) {- return "";- }- if (isMac()) {+ if (!hotkey||isMac()) {return hotkey;}+ const KEY_MAP = new Map([+ ["⌘", "Ctrl"],+ ["⌃", "Ctrl"],+ ["⇧", "Shift"],+ ["⌥", "Alt"],+ ["⇥", "Tab"],+ ["⌫", "Backspace"],+ ["⌦", "Delete"],+ ["↩", "Enter"],+ ]);const keys = [];-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("⌥"));@@ -365,7 +360,6 @@ export const updateHotkeyTip = (hotkey: string) => {if (lastKey) {keys.push(KEY_MAP.get(lastKey) || lastKey);}-return keys.join("+");};