forge
Explore
Log in

Don't you dare go Hollow

🎨 update shortcut badge formatting to explicit Ctrl/Cmd + key

Browse files at this commit

1e8b8f966d64a2df247c1ae33d4c73e0e1fa5dbaBurak BoduroğluParent: 06a375c
  • style
    • 🎨 update shortcut badge formatting to explicit Ctrl/Cmd + key
Show full message
style: 🎨 update shortcut badge formatting to explicit Ctrl/Cmd + key

- display Ctrl/Cmd + H, Ctrl/Cmd + C, Ctrl/Cmd + E, Ctrl/Cmd + X, Ctrl/Cmd + N, Ctrl/Cmd + Q in command palette shortcuts
src/components/layout/command-palette.tsxmodified+1 -2
@@ -65,8 +65,7 @@ export function CommandPalette(props: CommandPaletteProps) {
6565 const isTeacherPlus = hasMinRole(userRole, "teacher");
6666 const isStudent = userRole === "student";
6767
68- const isMac = typeof navigator !== "undefined" && (navigator.userAgent.includes("Mac") || navigator.platform?.includes("Mac"));
69- const mod = isMac ? "⌘" : "Ctrl+";
68+ const mod = "Ctrl/Cmd + ";
7069
7170 // 1. Quick Actions (Hızlı İşlemler)
7271 const actionsCategoryLabel = t("command.group.actions");