Skip to main content

formatHotkey

还没翻译译自英文(tanstack.com)本页 11 段都还没译

function formatHotkey(parsed): string;

Defined in: format.ts:54

Converts a ParsedHotkey back to a hotkey string.

Parameters

parsed

ParsedHotkey

The parsed hotkey object

Returns

string

A hotkey string in canonical form

Example

formatHotkey({ key: 'S', ctrl: true, shift: true, alt: false, meta: false, modifiers: ['Control', 'Shift'] })
// Returns: 'Control+Shift+S'