Normalization & format API Reference

MAC_MODIFIER_LABELS

Variable: MAC_MODIFIER_LABELS

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

Defined in: constants.ts:525

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'