Skip to content

SettingEx.addHotkey method

SettingEx › addHotkey

Adds a HotkeyComponent to the setting.

Signature:

addHotkey(callback: (hotkey: HotkeyComponent) => void): this

Parameters:

ParameterTypeDescription
callback(hotkey: HotkeyComponent) => voidThe callback to call with the component.

Returns: this — The setting instance.