Skip to content

followKeyboardLayout

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

Defined in: adapter.ts:653

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