Skip to content

formatForDisplay

ts
const formatForDisplay: typeof coreFormatForDisplay = coreFormatForDisplay;

Defined in: packages/svelte-hotkeys/src/formatForDisplay.ts:12

Formats a hotkey as a label, without the provider's platform or the user's keyboard layout.

Deprecated

Use getFormatForDisplay() in components. It returns this function with the provider's platform and the user's keyboard layout filled in. Outside a component, keep calling this function and pass platform yourself.