function createFormatter<TFormat>(
format,
getPlatform,
getLayoutMap
): TFormat;Defined in: adapter.ts:667
Returns format, such as formatForDisplay or formatForAria, with a provider's platform and keyboard layout used when the call doesn't pass them. Only a hotkey that names a physical key reads getLayoutMap, so other hotkeys don't depend on the layout.
TFormat extends (hotkey, options?) => unknown
TFormat
() => HotkeyPlatform | undefined
() => KeyboardLayoutMap | null | undefined
TFormat
const format = createFormatter(formatForAria, () => provider.platform, () => layoutMap)