On Fri, 10 Mar 2023 11:59:07 GMT, Abhishek Kumar <[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: }
This looks fine. do we need to implement the same logic for the togglebutton?
-------------
PR: https://git.openjdk.org/jdk/pull/12971