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

PUNCTUATION_KEYS

Variable: PUNCTUATION_KEYS

ts
const PUNCTUATION_KEYS: Set<PunctuationKey>;

Defined in: constants.ts:291

Set of all valid punctuation keys commonly used in keyboard shortcuts.

These are the literal characters as they appear in KeyboardEvent.key (layout-dependent, typically US keyboard layout). Common shortcuts include:

  • Mod+/ - Toggle comment
  • Mod+[ / Mod+] - Indent/outdent
  • Mod+= / Mod+- - Zoom in/out

Note: Punctuation keys are affected by Shift (Shift+',' → '<' on US layout), so they're excluded from Shift-based hotkey combinations to avoid layout-dependent behavior.