The keyboard events, such as @onkeydown, @onkeyup, and @onkeypress, are not triggering for the input element or InputText component in a MAUI Blazor app running on macOS. While these events work fine on Windows machines.
<input @onkeydown="KeydownHandler" @onkeypress="KeyPressHandler" @onkeyup="KeyUpHandler" @onfocus="FocusHandler"/>
@code {
public string ComboFieldsDimensionsAll_SelectedItem;
public void KeydownHandler()
{
}
public void KeyPressHandler()
{
}
public void KeyUpHandler()
{
}
public void FocusHandler()
{
}
}
Steps to Reproduce
- Run the attached MAUI app.
- Focus on the input element.
- Type any alphanumeric key inside it.
**Public project repo **
https://github.com/Deepak-Ramakrisnan/MAUI-KeyBoard
Expected Result: The keyboard events should trigger for every valid key press.
Actual Result: None of the keyboard events are triggered for the key inputs.