JDK-8208640 : [a11y] [macos] Unable to navigate between Radiobuttons in Radio group using keyboard.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 9,10,11,12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2018-08-01
  • Updated: 2022-01-27
  • Resolved: 2018-08-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12 JDK 7 JDK 8
11 b27Fixed 12Fixed 7u331Fixed 8u321Fixed
Related Reports
Relates :  
Relates :  
Description
Radio button group is not navigable using tab/shift tab, up/down, left/right arrow keys.
Only the first button gets the focus once the group is active, and can be selected, but not possible to select the other options.

Steps to reproduce:
1. Run SwingSet2.jar from demos.
2. Navigate to ButtonDemo.
3. Navigate to Radio Buttons Tab
4. Try navigating to "Text Radio Buttons" / "Image Radio Buttons" group.
5. The focus is only on the first radio button, and it does not goto other buttons in the group.

Expected:
It should be possible to navigate to other radio buttons in the group and possible to select any one of them.
Comments
URL: http://hg.openjdk.java.net/jdk/jdk11/rev/06417e487a28 User: prr Date: 2018-08-14 19:51:36 +0000
14-08-2018

Fix request approved.
14-08-2018

Fix Request: This is an accessibility bug, wherein, it is not possible to navigate between Radiobuttons in Radio group using keyboard. This happened because of JDK-8154043, which changed the behavior for navigating through the Radiobuttons, using arrow keys instead of tab keys. The proposed fix, is to copy the code for handling arrow key navigation from Basic L&F into Aqua L&F, so that the behavior on Mac is the same as on Windows. Speicifically, this fix is limited to only AquaButtonRadioUI.java, which only deals with RadioButton navigation and presentation. The relevant test JDK-8167160 was fixed post JDK-8154043, by simply excluding Aqua L&F from the test. With the proposed fix, the test has been re-enabled to run on Mac with Aqua L&F, which now passes. Fix was tested by running all the jtreg tests for open and closed sources, and also by running all jck tests for JRadioButton and Focus traversal tests, and found that there are no failures. Finally, SwingSet2 demo (where the actual problem has been observed) was also run, to confirm the behavior is as expected. The code has been reviewed by philip.race@oracle.com, prasanta.sadhukhan@oracle.com, sergey.bylokhov@oracle.com and semyon.sadetsky@oracle.com Webrev link: http://cr.openjdk.java.net/~kaddepalli/8208640/webrev02
14-08-2018