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: Render Return shortcut glyphs as text on macOS https://github.com/siyuan-note/siyuan/issues/18884
Daniel968c36748b7a
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex a8b46dc5ba..ce96aeadbe 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -622,9 +622,13 @@ export const updateHotkeyAfterTip = (hotkey: string, split = " ") => {// Mac,Windows 快捷键展示export const updateHotkeyTip = (hotkey: string) => {- if (!hotkey || isMac()) {+ if (!hotkey) {return hotkey;}+ if (isMac()) {+ // 为 Return 字符指定文本呈现,避免 macOS 使用彩色 emoji 字形。+ return hotkey.replace(/↩(?!\uFE0E)/g, "↩\uFE0E");+ }const keys = [];if ((hotkey.indexOf("⌘") > -1 || hotkey.indexOf("⌃") > -1)) keys.push("Ctrl");if (hotkey.indexOf("⇧") > -1) keys.push("Shift");