[NUI] Fix View to use control-accessible State::SENSITIVE
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 15 Apr 2024 08:11:38 +0000 (17:11 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 16 Apr 2024 02:56:04 +0000 (11:56 +0900)
In dali-toolkit, control-accessible's State::SENSITIVE has been modified
from Actor::Property::SENSITIVE to IsHittable() && GetTouchRequired().

Unlike control-accessible, NUI View's custom Accessibility state of
Sensitive still refers Actor::Property::SENSITIVE.

So NUI View with ViewAccessibilityMode.Default's Accessibility state of
Sensitive refers IsHittable() && GetTouchRequired().

In contrast, NUI View with ViewAccessibilityMode.Custom's Accessibility
state of Sensitive refers Actor::Property::SENSITIVE.

To make them have same Sensitive value, NUI View's custom Accessibility
state of Sensitive is modified to use the value from control-accessible.

src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs

index bb0449c..d963b44 100755 (executable)
@@ -539,7 +539,6 @@ namespace Tizen.NUI.BaseComponents
 
             states[AccessibilityState.Focused] = this.State == States.Focused;
             states[AccessibilityState.Enabled] = this.State != States.Disabled;
-            states[AccessibilityState.Sensitive] = this.Sensitive;
 
             return states;
         }