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

NVDA does not announce selection status in JTree (Java Access Bridge API) #13908

Open
anOolamr opened this issue Jul 15, 2022 · 2 comments
Open
Labels
component/java-access-bridge p4 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@anOolamr
Copy link

anOolamr commented Jul 15, 2022

NVDA does not announce

  • the details of a JTree except a tree item is selected,
  • selection or deselection of tree items,
  • multiline-selection of tree items.

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

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 "JTree demo" radio button and press Spacebar key to select it.

  5. Press Tab key twice to navigate with the keyboard focus to the JTree control.
    -> NVDA announces "tree view", which is the role of this JTree control.
    -> NVDA should announce the role, details regarding the root node and for example that no tree item is selected.

  6. Press the command Ctrl + arrow down to set the keyboard focus on the root node.
    -> NVDA announces nothing.
    -> NVDA should announce "Music, expanded, editable, 1 of 1, level 1".

  7. Press Ctrl + Tab to move the keyboard focus backwards out of the JTree and then press Tab key to move the keyboard focus to the JTree with the focused root node.
    -> NVDA announces "tree view".
    -> NVDA should announce "tree view, Music, expanded, editable, 1 of 1, level 1", as the root node has the keyboard focus.

  8. Press the command Ctrl + Spacebar to select the focused tree item.
    -> NVDA announces nothing.
    -> NVDA should announce "Music, selected, expanded, editable, 1 of 1, level 1".

  9. Press Ctrl + Tab to move the keyboard focus backwards out of the JTree and then press Tab key to move the keyboard focus back to the JTree with the selected root node.
    -> NVDA announces "tree view, Music, selected, expanded, editable, 1 of 1, level 1".

  10. Press the command Ctrl + Spacebar to deselect the root node.
    -> NVDA announces nothing.
    -> NVDA should announce "Music, expanded, editable, 1 of 1, level 1".

  11. Press the command Ctrl + Spacebar to select the root node and then the command Shift + Arrow down to select the child node "Classical".
    -> NVDA announces the last selected tree item.
    -> NVDA should announce the last selected tree item and that two items are selected.

  12. Press Ctrl + Tab to move the keyboard focus backwards out of the JTree and then press Tab key to move the keyboard focus to the JTree with the selected tree items.
    -> NVDA announces "tree view" and one of the selected items.
    -> NVDA should additionally announce that two tree items are selected.

Actual behavior:

When navigating to a JTree, NVDA does not announce tree details except at least one tree item is selected.
NVDA does not announce the tree item when selecting and deselecting it.
NVDA does not announce multiline-selection of tree items.

Expected behavior:

When navigating to a JTree, NVDA announces also tree details when no tree item is selected.
NVDA announces the selection and deselection of tree items.
NVDA announces multiline-selection of tree 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.

Yes. Same behavior.

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 anOolamr changed the title NVDA does not announce non-selected but focused JTree items (Java Access Bridge API) NVDA does not announce all details of a JTree: item selection issue (Java Access Bridge API) Jul 15, 2022
@seanbudd
Copy link
Member

I believe this is fixed in 2022.2rc1 by #10993

Could you please test with 2022.2rc1 (or the latest alpha) before reporting these Java issues?

@anOolamr
Copy link
Author

@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.

@seanbudd seanbudd reopened this Jul 18, 2022
@seanbudd seanbudd changed the title NVDA does not announce all details of a JTree: item selection issue (Java Access Bridge API) NVDA does not announce selection status in JTree (Java Access Bridge API) Jul 21, 2022
@seanbudd seanbudd added p4 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority component/java-access-bridge triaged Has been triaged, issue is waiting for implementation. labels Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/java-access-bridge p4 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

2 participants