From 29b78c80eb4e9941b428d65017878a04a294bdfa Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Wed, 3 Jun 2026 18:34:54 -0400 Subject: [PATCH] fix(desktop): use platform shortcut labels Show Control-based profile menu shortcuts on Windows and Linux to match the existing primary shortcut handling. Co-authored-by: Cursor --- desktop/src/features/profile/ui/ProfilePopover.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/desktop/src/features/profile/ui/ProfilePopover.tsx b/desktop/src/features/profile/ui/ProfilePopover.tsx index 28dacb1bc..d29134264 100644 --- a/desktop/src/features/profile/ui/ProfilePopover.tsx +++ b/desktop/src/features/profile/ui/ProfilePopover.tsx @@ -7,6 +7,7 @@ import { PresenceDot } from "@/features/presence/ui/PresenceBadge"; import { getPresenceLabel } from "@/features/presence/lib/presence"; import { SetStatusDialog } from "@/features/user-status/ui/SetStatusDialog"; import type { PresenceStatus } from "@/shared/api/types"; +import { isMacPlatform } from "@/shared/lib/platform"; // --------------------------------------------------------------------------- // Types @@ -68,6 +69,8 @@ export function ProfilePopover({ const [presenceMenuOpen, setPresenceMenuOpen] = React.useState(false); const presenceHoverTimer = React.useRef(null); const hasUserStatus = Boolean(userStatusText || userStatusEmoji); + const profileShortcutLabel = isMacPlatform() ? "⌘U" : "Ctrl+U"; + const preferencesShortcutLabel = isMacPlatform() ? "⌘," : "Ctrl+,"; function clearPresenceHoverTimer() { if (presenceHoverTimer.current !== null) { @@ -255,7 +258,9 @@ export function ProfilePopover({ type="button" > Profile - ⌘U + + {profileShortcutLabel} + {workspaceSwitcherSlot ? (