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 & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference

formatHotkeySequence

Function: formatHotkeySequence()

ts
function formatHotkeySequence(sequence): string;

Defined in: format.ts:37

Converts a hotkey sequence array to a display string.

Parameters

sequence

Hotkey[]

Array of hotkey strings that form the sequence

Returns

string

A space-separated string (e.g. ['G','G'] → 'G G')

Example

ts
formatHotkeySequence(['G', 'G'])      // 'G G'
formatHotkeySequence(['D', 'I', 'W']) // 'D I W'