Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference
Normalization & format API Reference

MAC_MODIFIER_LABELS

ts
const MAC_MODIFIER_LABELS: Record<CanonicalModifier | "Mod", string>;
const MAC_MODIFIER_LABELS: Record<CanonicalModifier | "Mod", string>;

Defined in: display-labels.ts:45

Modifier key labels for macOS display.

Used by formatting functions to display hotkeys with macOS-style text labels (e.g., 'Control' for Control, 'Option' for Alt, 'Cmd' for Meta) instead of symbols. This provides a familiar macOS look and feel in hotkey displays.

Example

ts
MAC_MODIFIER_LABELS['Control'] // 'control'
MAC_MODIFIER_LABELS['Alt'] // 'option'
MAC_MODIFIER_LABELS['Shift'] // 'shift'
MAC_MODIFIER_LABELS['Meta'] // 'cmd'
MAC_MODIFIER_LABELS['Control'] // 'control'
MAC_MODIFIER_LABELS['Alt'] // 'option'
MAC_MODIFIER_LABELS['Shift'] // 'shift'
MAC_MODIFIER_LABELS['Meta'] // 'cmd'