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

[macOS, Accessibility] VoiceOver: Missing announcements on cells of JTable

XMLWordPrintable

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

      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)

      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 (or idk-20, which behaves the same).
      -> SwingSet2 window is displayed. The ToggleButton “JInternalFrame demo” has the keyboard focus.

      3. Press Left Arrow key three times.
      -> The ToggleButton “JTable demo” on the very right side has the keyboard focus.

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

      5. Press Tab key fifteen times.
      -> The panel with the table inside has the keyboard focus.
      VoiceOver announces “Entering table table. Table, table, No selection. You are currently on a table. To enter this table, press Control-Option-Shift-Down Arrow”.

      6. Press Control-Option-Shift-Down Arrow.
      -> The cell with the text "Mike" in the first row and the first column has the keyboard focus, but is not selected.
      VoiceOver announces: "In table table, No selection. Mike. You are currently on a cell, inside a table. To navigate the cells within a table, press Control-Option and then Up Arrow, Down Arrow, Left Arrow or Right Arrow. To exit this table, press Control-Option-Shift-Up Arrow."
      Bug: VoiceOver does not announce the row number, the column number and the column header.
      Missing announcement: "... Mike. row 1, column 1, First Name. ..."

      7. Press Control-Option-Down Arrow.
      -> The cell with the text "Mark" in the second row and the first column has the keyboard focus, but is not selected.
      VoiceOver announces: "In table table, No selection. Mark. You are currently on a cell, ...".
      Same Bug as mentioned before.
      Missing announcement: "... Mark. row 2, column 1, First Name. ..."

      8. Press Control-Option-Right Arrow.
      -> The cell with the text "Andrews" in the second row and the second column has the keyboard focus, but is not selected.
      VoiceOver announces: "In table table, No selection. Andrews. You are currently on a cell, ...".
      Same Bug as mentioned before.
      Missing announcement: "... Andrews. row 2, column 2, Last Name. ..."

      9. Press Down Arrow key.
      -> Row 1 is now selected. The cell with the text "Mike" in the first row and the first column has the keyboard focus.
      VoiceOver announces: "In table table. Mike. You are currently on a cell, ...".
      Same Bug as mentioned before.


      Note 1: The mentioned bug does not occur with screen readers on Windows OS (tested with Jaws for Windows by Freedom Scientific, or NVDA by NVAccess).
      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.

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

              Created:
              Updated:
              Resolved: