# FormatForDisplayControllerOptions

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

Defined in: [controllers/format-for-display.ts:11](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L11)

Options for `FormatForDisplayController`.

## Properties

### keyboardLayout?

```ts
optional keyboardLayout?: boolean;
```

Defined in: [controllers/format-for-display.ts:23](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L23)

Whether labels follow the user's keyboard layout, so `[KeyQ]` reads `A`
on a French AZERTY keyboard. The layout loads from the browser when the
first host connects. Only Chromium browsers report one. Set `false` to
never ask the browser for it. Default: `true`.

***

### platform?

```ts
optional platform?: HotkeyPlatform;
```

Defined in: [controllers/format-for-display.ts:16](https://github.com/TanStack/hotkeys/blob/main/packages/lit-hotkeys/src/controllers/format-for-display.ts#L16)

The user's platform, for every label from `format`. Detected when unset.
On a server, set it from the request with `detectPlatform(userAgent)`.
