Skip to content

HotkeyComponent.onChange method

HotkeyComponent › onChange

Sets the callback to be called when the user records or clears a hotkey.

Signature:

onChange(callback: (newValue: Hotkey | null) => void): this

Parameters:

ParameterTypeDescription
callback(newValue: Hotkey | null) => voidThe callback.

Returns: this — The component.