[NUI][AT-SPI] Event emission added for button
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 23 Mar 2021 16:32:53 +0000 (17:32 +0100)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 20 Apr 2021 06:13:00 +0000 (15:13 +0900)
State changed ATSPI event emision added for highlight
Button. This will allow to read "Toggle button, On" and
"Toggle button, Off" by screen-reader.

src/Tizen.NUI.Components/Controls/Button.cs

index 96021fb..df811f3 100755 (executable)
@@ -97,6 +97,11 @@ namespace Tizen.NUI.Components
                     {
                         instance.UpdateState();
                     }
+
+                    if (instance.IsHighlighted)
+                    {
+                        instance.EmitAccessibilityStateChangedEvent(AccessibilityState.Checked, newSelected);
+                    }
                 }
             }
         },