Struct HotkeyDescriptor
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
CombostringCanonical combo string (e.g.
"ctrl+s").DescriptionstringHuman-friendly label shown in the cheat-sheet.
ScopeHotkeyScopeScope of the entry.
PreventDefaultboolWhen 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; }