Skip to content

FormatAriaOptions

Defined in: format.ts:309

Options for formatting a hotkey for aria-keyshortcuts.

Properties

layoutMap?

ts
optional layoutMap?: object;

Defined in: format.ts:320

An already-resolved code-to-key map, such as KeyboardLayoutMap or Map. Used only for physical bindings, to name the key the user presses. Missing or empty entries use the key at that position on a US keyboard.

get

ts
get: (code) => string | undefined;
Parameters
code

string

Returns

string | undefined


platform?

ts
optional platform?: HotkeyPlatform;

Defined in: format.ts:314

The target platform, for resolving Mod. Without it, formatForAria detects the platform in the browser and uses 'linux' on a server.