Class HotkeyHostRelay
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
-
objectHotkeyHostRelay
Constructors
HotkeyHostRelay(IHotkeyService)
Initializes a new HotkeyHostRelay.
public HotkeyHostRelay(IHotkeyService service)
Parameters
serviceIHotkeyService
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
combostring
Returns
- Task<bool>