Skip to content
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

[Edge Browser] Can't execute space/enter keyEvent on buttons when NVDA is on #8173

Closed
kitty7756 opened this issue Apr 12, 2018 · 7 comments
Closed
Labels
app/chrome app/edge/anaheim MS browser, chromium based, replaces Spartan in 2019 by Anaheim. NVDA access via IA2. app/firefox close/worksforme

Comments

@kitty7756
Copy link

I'm currently working on a web project that needs to be accessible in Edge. I have a toolbar which is <ul> that contains <li> elements, and inside each list element there is a <button>. When NVDA is on, space/enter keyEvents on buttons are not triggering when button elements are focused.

I found out about browse mode/focus mode. If I manually switch to focus mode, the buttons work as expected. However, I also noticed that NVDA is able to automatically switch between browse mode and focus mode. So my assumption would be that when the buttons are focused, NVDA automatically switches to focus mode from browse mode, but this isn't the case for me.

Another thing I found out is, some of the buttons do work as expected; even when I move them into the toolbar and put them as list elements. What could be causing this issue??

And I have no problem when I'm on Chrome.

System configuration:

NVDA version:
2018.1.1

NVDA Installed or portable:
Installed on Windows

Windows version:
Windows 10, Latest Microsoft Edge

@PratikP1
Copy link

@kitty7756 Do you have any way to provide us with sample code affected in this manner? There could be multiple issues which can contribute to this problem. While you may not be able to provide a live example, it would be helpful if you could provide a HTML file with the CSS and JS you're using.

@feerrenrut
Copy link
Contributor

@kitty7756 Thanks for taking the time to report this, as it stands it's quite hard to confirm whether this is expected behaviour. Ideally you could provide an example, and instructions to demonstrate the behaviour that you are seeing. Another thing you could do to help is to test this in Firefox or Chrome and report any differences in behaviour. Some of this sounds like expected (and configurable) behaviour, but without specific steps to reproduce and an example it's hard to say for sure. If you haven't already done so, please read the user guide and consider the Basic training material for NVDA

@MarcoZehe
Copy link
Contributor

I just recently saw something similar in the Pinafore web app, an alternative web app for the Mastodon federated social network. There, toggle buttons cannot be toggled from within virtual mode using the space key (or enter). In Firefox, Chrome, and IE, this works as expected, even without NVDA having to enable focus mode. So the expectation, IMO, is totally valid that this should work from within browse mode in Edge, too.

@ehollig ehollig added the z app/edge (archived) use app/edge/anaheim label May 14, 2018
@ruchirkemnaik
Copy link

It seems like this issue has started occurring in Chrome and Firefox too where Enter and Space key events on a button are consumed by NVDA in the browse mode. Here is a quick example on codepen: https://codepen.io/ruchirkemnaik/pen/MWYqzxM

Turn on NVDA, click on the input field and press "Tab" to move the focus onto the button. Now try pressing Enter/Space. Notice that nothing is logged in the console when you press Enter/Space in the browse mode. However, if you change NVDA to focus mode, you can see statements logged in the console.

@Adriani90
Copy link
Collaborator

I can reproduce with the example provided by @ruchirkemnaik using every browser with NVDA Version: alpha-20026,16ec967e.

@ObjectInSpace
Copy link

Using NVDA 2020.1, I can't get it to log anything to the console whether I am in browse or focus mode.

@seanbudd seanbudd added app/edge/anaheim MS browser, chromium based, replaces Spartan in 2019 by Anaheim. NVDA access via IA2. and removed z app/edge (archived) use app/edge/anaheim labels Apr 11, 2023
@Adriani90
Copy link
Collaborator

In browse mode this is expected behavior, because NVDA simulates mouse clicks instead of using the keydown definitions due to the inconsistent support of keypresses for many elements in the web. See #11143 for more details. I am closing this issue as works for me since in focus mode it works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/chrome app/edge/anaheim MS browser, chromium based, replaces Spartan in 2019 by Anaheim. NVDA access via IA2. app/firefox close/worksforme
Projects
None yet
Development

No branches or pull requests

9 participants