register

@NotNull
abstract fun register(@NotNull name: @NotNull String, keys: List<Hotkey.Key>, @NotNull category: @NotNull String, anyContext: Boolean): @NotNull Hotkey

Registers a new hotkey.

Return

The registered hotkey.

Parameters

name

The name of the hotkey.

keys

The list of keys associated with the hotkey.

category

The category to which the hotkey belongs.

anyContext

A flag indicating if the hotkey should trigger in any context (for example in any menu).