question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button onKeyDown handler not called when using NVDA screen reader

See original GitHub issue

The onKeyDown handler handleKeyDown is never called when using NVDA screen reader using react-aria-menubutton 4.1.3. This can also be reproduced on the demo page.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
LeopoldoFucommented, Oct 3, 2016

I think this issue is ok to close since:

  • it is expected behavior as discussed in the article I linked to in my previous comment
  • that this library is correctly adding event handlers for enter key, space key, and clicks to behave the same way.
  • Selecting first menu item when focused on menu button is optional. Although I did discover that if we set role="menu" on the trigger instead of role="button", JS event handlers are not intercepted by NVDA.

Keyboard Interaction: With focus on the button: Space and Enter: open the menu and place focus on the first menu item. (Optional) Down Arrow: opens the menu and moves focus to the first menu item.

0reactions
davidtheclarkcommented, Oct 4, 2016

Thanks for looking into this @LeopoldoFu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making actions keyboard accessible by using keyboard event ...
In HTML, keyboard handlers may be triggered by keydown, keyup, or keypress events. ... Each button is implemented by a li element with...
Read more >
Why Javascript IF keyCode === Enter key or Spacebar key ...
It probably won't fire because NVDA intercepts the keys if you are in browse mode, which is normal. If you were to manually...
Read more >
Enter Key doesn't work when using a Screen Reader
I works great when navigating the accordion using a keybaord. However, when I turn on the Screen Reader (Jaws and nVDA). The Enter...
Read more >
NVDA blocks my events like keydown and keypress ...
When I turn on the NVDA screen reader unsual things happen and events do not fire as expected . I want to detect...
Read more >
E-mail List Archives - WebAIM
> user specifically tells NVDA to pass that key through to the webpage). ... > event to the webpage, not the keyboard event....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found