Skip to main content

MODIFIER_ORDER

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

const MODIFIER_ORDER: CanonicalModifier[];

Defined in: constants.ts:26

Canonical order for modifiers in normalized hotkey strings.

Defines the standard order in which modifiers should appear when formatting hotkeys. This ensures consistent, predictable output across the library.

Order: Control → Alt → Shift → Meta

Example

// Input: 'Shift+Control+Meta+S'
// Normalized: 'Control+Alt+Shift+Meta+S' (following MODIFIER_ORDER)