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
Hotkeys API Reference

ConflictBehavior

ts
type ConflictBehavior = "warn" | "error" | "replace" | "allow";
type ConflictBehavior = "warn" | "error" | "replace" | "allow";

Defined in: hotkey.types.ts:325

Behavior when registering a hotkey/sequence that conflicts with an existing registration.

  • 'warn' - Log a warning to the console but allow both registrations (default)
  • 'error' - Throw an error and prevent the new registration
  • 'replace' - Unregister the existing registration and register the new one
  • 'allow' - Allow multiple registrations without warning