Skip to content

Event fired or strategy when transferring focus due to 'insert + space' in a 'grid' role HTML element? #15643

Answered by jcsteh
turjmner8 asked this question in Q&A
Discussion options

You must be logged in to vote

When you switch from browse mode to focus mode, NVDA asks the browser to focus the element under the browse modecursor. This is equivalent to calling .focus() on the element in JS and can only work if the element is focusable; e.g. has a tabindex. Note that tabindex="-1" means that the element is still focusable, but not tabbable.

There is no way for NVDA to ask an element without a tabindex to get the focus. That would require some other kind of event, though that introduces privacy issues because it explicitly signifies to the website that the user is using assistive technology and thus is unlikely to ever be introduced into the web platform.

The only way you can achieve what you want i…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@turjmner8
Comment options

Comment options

You must be logged in to vote
1 reply
@turjmner8
Comment options

Answer selected by turjmner8
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants