Skip to content

Hotter Keys

A correct, cross-browser, layout-aware keyboard shortcut library for the web.

Safe by default

Matches on key, not code — only a-z and 0-9 are allowed as non-modifier keys. Shift+digit is rejected to avoid locale-dependent behavior. The mod2 keyword provides a safe cross-platform secondary modifier (Ctrl on macOS, Alt on Windows/Linux).

Key sequences

Multi-chord shortcuts like with configurable timeouts between chords.

Held-keys tracking

Real-time tracking of pressed keys with stale-modifier recovery, blur reset, and single-key hold detection.

Shortcut recording

Built-in recordShortcut() utility for “press a key to rebind” UIs with safety validation.