fix: render correct meta key in keyboard hints on Windows/Linux (#168)

Hardcoded ⌘ glyphs in compose hints were misleading on non-mac
platforms. Add a tiny platform helper sourced from the existing
window.electronWindow.platform bridge and substitute "Ctrl" off mac.
Closes #167.

https://claude.ai/code/session_01YZY4wUqACT7mgibHr2Yncx

Co-authored-by: Claude <[email protected]>
This commit was merged in pull request #168.
This commit is contained in:
Arjun Patel
2026-04-16 09:04:29 -07:00
committed by GitHub
co-authored by Claude
parent 7da3ec6ab6
commit 567884433d
3 changed files with 10 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
export const isMac = window.electronWindow?.platform === "darwin";
// Symbol to show in keyboard hints for the primary modifier
// (Cmd on macOS, Ctrl on Windows/Linux).
export const metaKey = isMac ? "⌘" : "Ctrl";