Table of Contents

Struct HotkeyDescriptor

Namespace
BlazOrbit.Hotkeys
Assembly
BlazOrbit.Hotkeys.dll

Snapshot of a registered hotkey, exposed via RegisteredHotkeys so a cheat-sheet UI can render the live list.

public readonly struct HotkeyDescriptor

Constructors

HotkeyDescriptor(string, string, HotkeyScope, bool)

Snapshot of a registered hotkey, exposed via RegisteredHotkeys so a cheat-sheet UI can render the live list.

public HotkeyDescriptor(string Combo, string Description, HotkeyScope Scope, bool PreventDefault = true)

Parameters

Combo string

Canonical combo string (e.g. "ctrl+s").

Description string

Human-friendly label shown in the cheat-sheet.

Scope HotkeyScope

Scope of the entry.

PreventDefault bool

When true, the JS bridge calls event.preventDefault() synchronously on match so the browser's default action never fires.

Properties

Combo

Canonical combo string (e.g. "ctrl+s").

public string Combo { get; init; }

Property Value

string

Description

Human-friendly label shown in the cheat-sheet.

public string Description { get; init; }

Property Value

string

PreventDefault

When true, the JS bridge calls event.preventDefault() synchronously on match so the browser's default action never fires.

public bool PreventDefault { get; init; }

Property Value

bool

Scope

Scope of the entry.

public HotkeyScope Scope { get; init; }

Property Value

HotkeyScope