# followKeyboardLayout

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

```ts
function followKeyboardLayout(onChange, load?): () => void;
```

Defined in: [adapter.ts:653](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L653)

Loads the browser's keyboard layout and calls `onChange` when it changes.
Pass `load` to run the load differently, such as outside Angular's zone.
Returns a function that stops following and releases the load.

## Parameters

### onChange

(`layoutMap`) => `void`

### load?

() => () => `void`

## Returns

() => `void`
