Hotkeys Docs
AI/LLM: This documentation page is available in plain markdown format at/hotkeys/latest/docs/framework/ember/reference/variables/formatForDisplay.md
formatForDisplay
ts
const formatForDisplay: typeof coreFormatForDisplay = coreFormatForDisplay;Defined in: packages/ember-hotkeys/src/formatForDisplay.ts:11
Formats a hotkey as a label, without the scope's platform or the user's keyboard layout.
Deprecated#
Use useFormatForDisplay() in components. It returns this function with the scope's platform and the user's keyboard layout filled in. Outside a component, keep calling this function and pass platform yourself.