Post

Replies

Boosts

Views

Activity

onKeyDown/onKeyUp keyboard event doesn't fire on iOS 16.1 when tab/arrow key is pressed on external keyboard
I have an onKeyDown event handler in button but that doesn't get fired when any key is pressed on the external keyboard. When I press tab/shift+tab focus moves to the button. But any key press on the button is not triggering keyboard events. This is my code <button onKeyDown={(e) => {console.log(e);}}>Click here</button> Keyboard events are not getting fired for any of the html elements even with tabIndex=0.
0
0
928
Dec ’22