On Mon, 13 Mar 2023 22:58:20 GMT, Artem Semenov <[email protected]> wrote:
>> Screen magnifier doesn't reflect the JRadiobutton checked/unchecked state.
>> After selecting JRadioButton, the screen magnifier does not show that
>> JRadioButton is selected. When mouse is moved away and moved back on the
>> JRadioButton, magnifier shows the checked state.
>>
>> Correct behavior should be to show the checked/unchecked state immediately
>> while using magnifier.
>>
>> Solution:
>> Added a condition to check if component is JRadioButton and notified the
>> native side whenever state change event occurred.
>> Verified with the Swingset2 demo.
>>
>> Steps to reproduce:
>> This can be verified using swingset2 demo.
>> Steps to reproduce are mentioned in JBS.
>
> src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessible.java line 191:
>
>> 189: if (thisRole == AccessibleRole.RADIO_BUTTON) {
>> 190: valueChanged(ptr);
>> 191: }
>
> Have you checked to see if this would negatively impact voice over and other
> accessibility tools?
I checked with voice over and it does announce the correct state of the
radiobutton.
In fact after this fix, VO announces it's selected state as well which was not
announced before without this fix.
What are the other a11y tools we can check?
-------------
PR: https://git.openjdk.org/jdk/pull/12971