Hotkey
FreeInvisible component that runs a callback for a keyboard shortcut such as alt+k or mod+shift+l (mod is Ctrl on Windows and Cmd on macOS). Shortcuts are ignored while typing in a field unless AllowInInputs is set.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
AllowInInputs | bool | Also reacts while a text field has focus (default false). |
Keys | string | Shortcut such as alt+k or mod+shift+l. mod is Ctrl or Cmd. |
PreventDefault | bool | Stops the browser's own action for the shortcut (default true). |
Events
| Event | Type | Description |
|---|---|---|
OnPressed | EventCallback | Raised when the shortcut is pressed. |
Package
Hotkey is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3