nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.1k stars 634 forks source link

No action on 'Move selection to selected" button on first activation in Multi-select picklist #15780

Open Sweety1621 opened 11 months ago

Sweety1621 commented 11 months ago

Steps to reproduce:

  1. Go to https://developer.salesforce.com/docs/component-library/bundle/lightning-dual-listbox/example
  2. Turn on NVDA
  3. Focus on Available list
  4. Select a value and then press space/enter on the 'Move selection to selected' field
  5. Notice it doesn't work the 1st time and focus is lost
  6. Activate it a 2nd time

This works as expected with JAWS or Voiceover.

Actual behavior:

When a user presses enter/space on the Move selection to selected button to move an item to the 'Selected' box, nothing happens on the first try. A user has to action the button a 2nd time to move the selected item over. Focus is also lost after the 1st keyboard activation. The issue doesnt happen in reverse when moving items from right to left.

Expected behavior:

After taking action on the Move button, space or enter should work the first time to move an item over. Focus should stay on the trigger element.

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2023.2

Windows version:

Windows 11

Name and version of other software in use when reproducing the issue:

Chrome 119.0.6045.106

Other information about your system:

VM

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

No

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes

Adriani90 commented 11 months ago

Is this reproducible in Firefox as well?

Sweety1621 commented 11 months ago

Is this reproducible in Firefox as well?

No

Sweety1621 commented 11 months ago

Hi @Adriani90, did you get a chance to look into this issue?

Adriani90 commented 10 months ago

@Sweety1621 I cannot reproduce your issue with NVDA last alpha. You can test with the last alpha from this link: https://www.nvaccess.org/files/nvda/snapshots/

I tested in Chrome and Edge 119 last updates but without virtual machine.

  1. When I navigate in browse mode with arrow keys to the available list, I press enter on the country, NVDA reports "selected". Then I press down arrow, NVDA says "move item to selected", I press enter and the item is moved as expected. This works both in Chrome and Firefox without loosing focus. Is automatic focus focusable elements turned off in your NVDA browse mode settings? If not, please turn it off and try to reproduce again.

  2. When i navigate in focus mode to the list, in Chrome and Edge I press up and down arrow to select a country, then i press tab and then enter to move the item to the selected list. It works as expected.

Adriani90 commented 10 months ago

In Firefox the focus does not sync reliably when I press nvda+space bar to enable focus mode. @jcsteh is the failing sync of system focus when using nvda+space bar somehow influenced by the web author in this case? I wonder why this works smoothly in Chromium browsers but not in Firefox.

jcsteh commented 10 months ago

Are you pressing NVDA+space after moving focus to the list? For me, focus is moved reliably in this case.

Sweety1621 commented 10 months ago

Thanks @Adriani90 , I turned-off Automatic focus mode for focus changes and it's showing the expected behaviour in Chrome. However, it only works once when I change the settings, pressing NVDA+space doesn't work later.

Sweety1621 commented 10 months ago

This works: press the 'Tab' key to navigate to the left listbox, then press 'Alt + Down Arrow', and finally press 'Tab' again. This time, the 'Move' button will exhibit the expected behaviour and transfer the choice to the right listbox.

I wanted to confirm about the change in the NVDA setting @Adriani90. Turing off 'Automatic focus mode for focus changes' shows the expected behaviour but is this setting feasible for users who rely on a screen reader, as it isn't the default setting?

Adriani90 commented 10 months ago

Automatic focus mode has been introduced actually only with the purpose of filling forms but the usage of automatic change to focus mode in day to day work with NVDA is controversial among users. Most of the users I know do not use the automatic focus mode setting. There are more other issues related to this setting indeed. I will let this open as well since it seems to be reproducible when this setting is enabled.

Actually I was refering to another setting in my comment above, which is called "automatically move focus to focusable elements" which basically moves the system focus automatically when moving the virtual cursor in browse mode. That setting is disabled by default. I thought you might have enabled it by accident or so.