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

[macOS, Accessibility] VoiceOver: Incorrect announcements of JRadioButton

    XMLWordPrintable

Details

    • b04
    • generic
    • os_x
    • Verified

    Backports

      Description

        ================
        Test environment
        ================
        Apple M1 Pro, macOS Ventura version 13.4

        openjdk version "21-ea"
        OpenJDK Runtime Environment (build 21-ea+23-1988)
        OpenJDK 64-Bit Server VM (build 21-ea+23-1988, 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-21.
        -> SwingSet2 window is displayed. The Togglebutton “JInternalFrame demo” has the keyboard focus.

        3. Press Right Arrow key once.
        -> The ToggleButton “JButton JRadioButton JToggleButton JCheckbox demo” has the keyboard focus.

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

        5. Press Tab key twice.
        -> The Buttons tab has the keyboard focus.

        4. Press Right Arrow key once.
        -> The Radio Buttons tab is selected.

        5. Press Tab key once.
        -> The “Radio One” RadioButton has the keyboard focus.
        VoiceOver announces “Entering Radio Buttons tab group. Radio One, radio button. You are currently on a radio button. To select this option, press Control-Option-Space.”

        6. Press Control-Option-Space.
        -> The “Radio One” RadioButton is selected.
        VoiceOver announces “Selected, Radio One, radio button. You are currently on a selected radio button.

        7. Press Control-Option-Right Arrow.
        -> The “Radio Two” RadioButton, which is not selected, has the keyboard focus.
        VoiceOver announces “Selected, Radio One, radio button. You are currently on a radio button. To select this option, press Control-Option-Space.”
        Bug: VoiceOver announces the wrong radio button (Radio One instead of Radio Two).
        Expected announcement: "Radio Two, radio button, 2 of 3. ..."


        Note 1: This bug does not happen with jdk-20, tested with:
        java version "20" 2023-03-21
        Java(TM) SE Runtime Environment (build 20+36-2344)

        Note 2: 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.

        Attachments

          Issue Links

            Activity

              People

                kizune Alexander Zuev
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: