nvda icon indicating copy to clipboard operation
nvda copied to clipboard

NVDA does not announce selection status in JList (Java Access Bridge API)

Open anOolamr opened this issue 1 year ago • 2 comments

NVDA does not announce

  • the details of a JLIst except only one list item is selected,
  • selection or deselection of list items,
  • multiline-selection of list items.

Similar to #13908 but this issue is about JList, that is about JTree

Steps to reproduce:

  1. If not available, download the SwingSet2 Demonstration Program from: https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2

  2. Start NVDA.

  3. Launch SwingSet2.jar with an up-to-date Java JRE. -> The SwingSet2 application window appears.

  4. Navigate with arrow right key to the "JList demo" radio button and press Spacebar key to select it.

  5. Press Tab key twice to navigate with the keyboard focus to the JList control. -> NVDA announces "list", which is the role of the JList control. -> NVDA should announce the role and the number of list items and for example that no item is selected.

  6. Press the command Ctrl + arrow down to set the keyboard focus on the first list item. -> NVDA announces "JoJoSystems, 1 of 30".

  7. Press Ctrl + Tab to move the keyboard focus backwards out of the JList and then press Tab key to move the keyboard focus to the JList with the focused list item. -> NVDA announces "list". -> NVDA should announce "list, JoJoSystems, 1 of 30", as this item has the keyboard focus.

  8. Press the command Ctrl + Spacebar to select the focused list item. -> NVDA announces nothing. -> NVDA should announce "JoJoSystems, selected, 1 of 30".

  9. Press Ctrl + Tab to move the keyboard focus backwards out of the JList and then press Tab key to move the keyboard focus back to the JList with the selected list item. -> NVDA announces "list, JoJoSystems, selected, 1 of 30".

  10. Press the command Ctrl + Spacebar to deselect the list item. -> NVDA announces nothing. -> NVDA should announce "JoJoSystems, 1 of 30".

  11. Press the command Ctrl + Spacebar to select the list item and then the command Shift + Arrow down to select another list item (multiline-selection). -> NVDA announces the last selected list item. -> NVDA should announce the last selected lsit item and that two list items are selected.

  12. Press Ctrl + Tab to move the keyboard focus backwards out of the JList and then press Tab key to move the keyboard focus to the JList with the selected list items. -> NVDA announces "list". -> NVDA should announce the list role with the list details and that two list items are selected.

Actual behavior:

When navigating to a JList, NVDA does not announce list details except one and only one list item is selected. NVDA does not announce the list item when selecting and deselecting it. NVDA does not announce multiline-selection of list items.

Expected behavior:

When navigating to a JLIst, NVDA announces also list details when no list item or more than one list item is selected. NVDA announces the selection and deselection of list items. NVDA announces multiline-selection of list items.

System configuration

NVDA installed/portable/running from source:

installed

NVDA version:

Version: 2022.1

Windows version:

Version 10.0.19043 Build 19043

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

java version "18.0.1" 2022-04-19 Java(TM) SE Runtime Environment (build 18.0.1+10-24) Java HotSpot(TM) 64-Bit Server VM (build 18.0.1+10-24, mixed mode, sharing)

Other information about your system:

Java Access Bridge is enabled.

Other questions

Does the issue still occur after restarting your computer?

Yws.

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

Retested with version 2022.2rc1 (running nvda_2022.2rc1.exe). Issues still exists.

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

Not applicable.

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

Not applicable.

anOolamr avatar Jul 15 '22 09:07 anOolamr

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

Which versions did you test? Have you tested 2022.2rc1?

seanbudd avatar Jul 18 '22 01:07 seanbudd

@seanbudd Thanks for your hint! I have retested with version 2022.2rc1 (by running nvda_2022.2rc1.exe), downloaded from: https://www.nvaccess.org/files/nvda/snapshots/ The described issues still exist.

anOolamr avatar Jul 18 '22 09:07 anOolamr