Format for Display API Reference

MODIFIER_ORDER

Variable: MODIFIER_ORDER

ts
const MODIFIER_ORDER: CanonicalModifier[];

Defined in: constants.ts:65

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

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