Table of Contents

Class HotkeyHostRelay

Namespace
BlazOrbit.Hotkeys
Assembly
BlazOrbit.Hotkeys.dll

Bridge object the JS hotkey listener calls back into. Held alive by BOBHotkeyHost via a Microsoft.JSInterop.DotNetObjectReference<TValue>; do not register directly in DI.

public sealed class HotkeyHostRelay
Inheritance
object
HotkeyHostRelay

Constructors

HotkeyHostRelay(IHotkeyService)

Initializes a new HotkeyHostRelay.

public HotkeyHostRelay(IHotkeyService service)

Parameters

service IHotkeyService

Methods

OnHotkey(string)

Invoked by the JS bridge for every keydown event. Returns whether the original event should be cancelled.

[JSInvokable]
public Task<bool> OnHotkey(string combo)

Parameters

combo string

Returns

Task<bool>