-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility issue: Electron system tray context menu on Windows is not keyboard navigable #11587
Comments
Looks like the missing key press handling functionality should be in Chromium's |
Did regression occur with this? I created an application with a tray menu, and I can't navigate it with the arrow keys on my keyboard. My code is here: https://github.com/brentgti/electron-Teams-links. |
Is this issue actually fixed, or maybe there's a regression issue here? My tray menu doesn't allow for navigation via keyboard. See https://github.com/brentgti/electron-Teams-links. |
I second that. Can't navigate with the keyboard.
|
Update: |
I still can't navigate the menu in my application with the arrow keys. I'm using electron 9.0.0. Others have referred to an electron-builder version, but I don't know about that. I'm using electron-packager to create my .exe. |
The fix was merged just 3 days ago, man... |
Sorry, I forgot how these things work 😳. Thanks for the reply. |
@brentgti https://github.com/electron/electron/releases/tag/v9.0.2
|
Reopening this issue since the previous fix had unintended side-effects. |
Expected behavior
It is possible to access system tray items and their respective context menus on Windows using the keyboard only. This functionality is important for accessibility reasons.
The system tray is selected using the key combination WINDOWS+B and then opened using the ENTER key. It is then possible to navigate to a specific icon using the arrow keys and select it with ENTER to open the icon's context menu. It should be possible to then navigate through this menu using the arrow keys and select a specific item with ENTER.
Actual behavior
Arrow key navigation and ENTER selection is not available for Electron apps' system tray icon context menus. Pressing the arrow keys while the system tray icon's context menu is open, after being opened using the keyboard steps above, produces no result.
How to reproduce
Technical details
See notify_icon.cc's function
NotifyIcon::PopUpContextMenu
which makes a call to the->RunMenuAt
. I am new to the Electron codebase, but as far as I can tell, this isRunMenuAt
call is defined in Chromium, meaning we can't change it directly, but will need to find another way to show context menus that is keyboard accessible.The text was updated successfully, but these errors were encountered: