Repository navigation
refactor: Improve accessibility of menus - #15302
Merged
Merged
Conversation
ckerr
reviewed
Oct 22, 2018
brenca
force-pushed
the
brenca/improve-accessibility
branch
from
October 26, 2018 02:36
9f9fa1f to
5c729d2
Compare
|
Thanks so much for addressing this issue! Atom users have been reporting it for at least 2 years: atom/atom#5998. Really excited to get this into a future release! |
|
Release Notes Persisted
|
|
Thanks for these changes! Any idea which release they'll be in? |
3 of 4 tasks
trop-bot
pushed a commit
to trop-bot/electron
that referenced
this pull request
Feb 27, 2019
Fixes electron#16883. This bug seems to have been introduced in the electron#15302's menu a11y refactor and is new in 5-0-x.
ckerr
added a commit
that referenced
this pull request
Mar 4, 2019
trop-bot
pushed a commit
to trop-bot/electron
that referenced
this pull request
Mar 4, 2019
Fixes electron#16883. This bug seems to have been introduced in the electron#15302's menu a11y refactor and is new in 5-0-x.
codebytere
pushed a commit
that referenced
this pull request
Mar 4, 2019
|
Looks like it made it into v5. See |
This was referenced Aug 5, 2019
|
@ckerr did this fix left/right arrow navigation between menus? It seems still broken. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
There are a couple of accessibility problems related to menus that I've found:
Windows Narratorcouldn't announce any menu itemsWindows(and I guessLinuxtoo) was not accessible by keyboardThe first fix was given to us by the
Chromium 69upgrade, which allowed theWindows Narratorto read the menus. This is because chromium'sUIAutomationAPI implementation is not yet complete, and that's what the narrator uses onWindows(but the implementation progressed from 68 to 69 to allow the menus to be read).The menu bar was not accessible because we basically didn't
focustheView, which in turn didn't give it keyboard events. This was done because some commands in the menu (like copy) depend on the actual content being focused, instead of the bar. I fixed this by returning the focus before the command executes. Also, focusing the menu bar was not enough, since we used a plainViewfor the bar, which didn't implement any keyboard navigation of it's items. I changed the base class toAccessiblePaneView, which implements that navigation (should fix #2504).#11587 was caused by the fact that the tray icon's context menu was spawned without a
Widget, since it's not necessary to have aBrowserWindowto have an icon in the tray. TheWidgetis important because that's what actually captures keyboard events, and the menus leech off their parentWidgetsfor those events. I added a temporary non-visualWidgetto the menu that gets destroyed when the menu closes, which fixed the issue.Checklist
npm testpassesRelease Notes
Notes: improved tray icon context menu and menu bar accessibility