Skip to content

Keymap.registerWindow method

Keymap › registerWindow

Unofficial

Registers keyboard and focus event listeners on a window.

Signature:

registerWindow(win: Window): () => void

Parameters:

Parameter Type Description
win Window The window to register on.

Returns: () => voidA function that unregisters the listeners.