Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307975

[macOS, Accessibility] VoiceOver: Missing or incorrect announcements on JComboBox

XMLWordPrintable

      ================
      Test environment
      ================
      Apple M1 Pro, macOS Ventura version 13.3.1 (a)

      java version "20" 2023-03-21
      Java(TM) SE Runtime Environment (build 20+36-2344)
      Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)

      ================
      Test application
      ================
      SwingSet2.jar
      SwingSet2 can be downloaded from:
      https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2

      ======================
      Test to reproduce bugs
      ======================
      1. On macOS, start VoiceOver (for example with shortcut Option-Command-F5).

      2. Start SwingSet2.jar with jdk-20.
      -> SwingSet2 window is displayed. The Togglebutton “JInternalFrame demo” has the keyboard focus.

      3. Press arrow-right key three times.
      -> The ToggleButton “JComboBox demo” has the keyboard focus.

      4. Press Space key.
      -> The tab group “ComboBox Demo” is shown.

      5. Press Tab key twice.
      -> The “Presets” ComboBox has the keyboard focus.
      VoiceOver announces “Philip, Howard, Jeff, Presets, Combobox, You are currently on a combobox. Type text or, to display a list of choices, press Control-Option-Space”.

      6. Press Control-Option-Space.
      -> Nothing happens
      Bug #1: Is this a wrong announcement, or does the keyboard command not work here?

      7. Press arrow-down key.
      -> Dropdown list opens. The first item “Philip, Howard, Jeff” has the selection focus.
      -> VoiceOver announces “Java, has new system dialog”.
      Bug #2: VoiceOver does not announce that the list has opened and the item with the focus position.
      Expected announcement: “List opened, Philip, Howard, Jeff, item one of ten”.

      8. Press arrow-down key.
      -> The second item “Jeff, Larry, Philip” in the list has the selection focus.
      Bug #3: VoiceOver announces nothing.
      Expected announcement: “Jeff, Larry, Philip, item two of ten”.

      9. Press arrow-down key.
      -> The third item “Howard, Scott, Hans” in the list has the selection focus.
      Same as Bug #3: VoiceOver announces nothing.
      Expected announcement: “Howard, Scott, Hans, item three of ten”.

      10. Press Enter (or Space) key on the third item.
      -> The dropdown list closes and the third item “Howard, Scott, Hans” is selected and is visible in the ComboBox.
      -> VoiceOver announces: “closing menu, Philip, Howard, Jeff, Presets, combobox”.
      Bug #4: VoiceOver announces the wrong item.
      Expected announcement: “List closed, Howard, Scott, Hans, Presets, combobox”.

      Note 1: The mentioned bugs can also be reproduced with a simple, self-written Java application containing two JComboBox components.
      Note 2: The mentioned bugs do not occur with screen readers tested on Windows OS (tested with Jaws for Windows by Freedom Scientific, or NVDA by NVAccess).
      Note 3: Mentioning a bug on VoiceOver announcement does not mean that the issue is on VoiceOver’s side, rather it is the result of the issue and the cause of the issue needs to be found.

            abhiscxk Abhishek Kumar
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: