1,675 questions
the Hybrid app is running in a webview. so it standard browser keyboard handling, via the keyboard events (as as js).
[index.razor]
@page "/"
<input type="text" @onkeydown="KeyboardEventHandler " @onkeypress=" KeyboardEventHandler " @onkeyup="KeyboardEventHandler "/>
<h4>@KeyPressed </h4>
<h4>@EventInfo</h4>
@code {
string KeyPressed = "";
string EventInfo = "";
private void KeyboardEventHandler(KeyboardEventArgs args)
{
KeyPressed = "Key Pressed is " + args.Key;
EventInfo = "Event Type " + args.Type;
}
}