Hotkeys Docs
Getting Started
AI/LLM: This documentation page is available in plain markdown format at/hotkeys/latest/docs/framework/preact/reference/variables/formatForAria.md
formatForAria
ts
const formatForAria: typeof coreFormatForAria = coreFormatForAria;Defined in: formatForAria.ts:12
Formats a hotkey for aria-keyshortcuts, without the provider's platform or the user's keyboard layout.
Deprecated#
Use useFormatForAria() 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.