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
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference

SingleModifierHotkeyChord

ts
type SingleModifierHotkeyChord = 
  | `Control+${Key}`
  | `Alt+${Key}`
  | `Shift+${Key}`
  | `Meta+${Key}`
  | `Mod+${Key}`;
type SingleModifierHotkeyChord = 
  | `Control+${Key}`
  | `Alt+${Key}`
  | `Shift+${Key}`
  | `Meta+${Key}`
  | `Mod+${Key}`;

Defined in: hotkey.types.ts:18

Single modifier + key combinations. Uses canonical modifiers (4) + Mod (1) = 5 modifiers.

The Mod modifier is platform-adaptive:

  • macOS: Resolves to Meta (Command key ⌘)
  • Windows/Linux: Resolves to Control (Ctrl key)

This enables cross-platform hotkey definitions that automatically adapt to the platform. For example, Mod+S becomes Command+S on Mac and Ctrl+S on Windows/Linux.