getHotkey

@NotNull
abstract fun getHotkey(@NotNull name: @NotNull String): @NotNull Optional<Hotkey>

Retrieves a hotkey by its name.

Return

An optional containing the hotkey if found, or empty if not.

Parameters

name

The name of the hotkey to retrieve.