Skip to main content

MAC_MODIFIER_SYMBOLS

还没翻译译自英文(tanstack.com)本页 5 段都还没译

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

Defined in: display-labels.ts:22

Modifier key symbols for macOS display.

Used by formatting functions to display hotkeys with macOS-style symbols (e.g., ⌘ for Command, ⌃ for Control) instead of text labels. This provides a native macOS look and feel in hotkey displays.

Example

MAC_MODIFIER_SYMBOLS['Meta'] // '⌘'
MAC_MODIFIER_SYMBOLS['Control'] // '⌃'
MAC_MODIFIER_SYMBOLS['Alt'] // '⌥'
MAC_MODIFIER_SYMBOLS['Shift'] // '⇧'