Skip to content

Needless state announcement on JMenu and JMenuItem (Java Access Bridge) #14336

Closed
@ghost

Description

When opening a JMenu and selecting a JMenuItem (or a subclass of JMenuItem), NVDA announces the AccessibleState "selected" or "enabled". These state announcements are needless on menu and menu items and time-consuming when exploring menus.

Steps to reproduce:

Prerequisites:
You have installed a Java Runtime Environment, e.g. JDK/JRE version 17 or 18.
You have downloaded the SwingSet2 Demonstration Program from: https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2

  1. Launch SwingSet2.jar with the Java JRE.
    The SwingSet2 application window appears.
  2. Open the File menu with keystroke Alt+F.
  3. Use arrow down key to navigate to the menu items About and Exit.

Actual behavior:

(I got a German speech output and translated it to English. Maybe the English speech output is different.)

File Menu selected enabled Alt+F
About selected B
Exit selected X

Expected behavior:

File Menu Alt+F
About B
Exit X

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

instlled

NVDA version:

Version 2022.3.1

Windows version:

Microsoft Windows 10 Enterprise
Version 10.0.19044 Build 1904

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

java version "17.0.4" 2022-07-19 LTS
Java(TM) SE Runtime Environment (build 17.0.4+11-LTS-179)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.4+11-LTS-179, mixed mode, sharing)

Other information about your system:

Java Access Bridge is enabled.

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.

Same behavior in previous versions of NVDA.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/java-access-bridgep4https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions