NVDA does not announce selection status in JTree (Java Access Bridge API) #13908
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.
NVDA does not announce
Similar to #13907 but this issue is about JTree, that is about JList
Steps to reproduce:
If not available, download the SwingSet2 Demonstration Program from: https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2
Start NVDA.
Launch SwingSet2.jar with an up-to-date Java JRE.
-> The SwingSet2 application window appears.
Navigate with arrow right key to the "JTree demo" radio button and press Spacebar key to select it.
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.
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".
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.
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".
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".
Press the command Ctrl + Spacebar to deselect the root node.
-> NVDA announces nothing.
-> NVDA should announce "Music, expanded, editable, 1 of 1, level 1".
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.
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.
The text was updated successfully, but these errors were encountered: