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
1k
Dec ’22
iOS 15.0 and iOS 16.0 - Focus doesn't move to links (<a> element) when pressing tab/shift+tab in external keyboard
While pressing tab/shift+tab using external keyboard focus doesn't move to tag elements even with tabIndex=0. This is my javascript code <a href="https://discussions.apple.com/" tabIndex={0}>Click here</a> Focus moves to all other html elements except link element.
Replies
1
Boosts
1
Views
1.5k
Activity
Jan ’23
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.
Replies
0
Boosts
0
Views
1k
Activity
Dec ’22