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
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key Hold API Reference
Held Keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Format for Display API Reference
Format for Display API Reference

MODIFIER_ORDER

Variable: MODIFIER_ORDER

ts
const MODIFIER_ORDER: CanonicalModifier[];

Defined in: constants.ts:67

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)