[Tizen][AT-SPI] Remove Text{Editor,Field}::mStencil from the tree 97/293397/1 accepted/tizen/7.0/unified/20230526.164252
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 25 May 2023 12:59:41 +0000 (14:59 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Thu, 25 May 2023 12:59:52 +0000 (14:59 +0200)
These objects are not interesting to the Screen Reader.

Change-Id: I764ca04999114ca7f14a3e9a04442c1971b79ad7

dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp

index 2b713d1..315d6bc 100644 (file)
@@ -591,6 +591,7 @@ void TextEditor::OnInitialize()
   mStencil = Control::New();
   mStencil.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
   mStencil.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+  mStencil.SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_HIDDEN, true);
 
   // Creates a background visual. Even if the color is transparent it updates the stencil.
   mStencil.SetProperty(Toolkit::Control::Property::BACKGROUND,
index c63a47e..faad888 100644 (file)
@@ -1104,6 +1104,7 @@ void TextField::EnableClipping()
     mStencil = Control::New();
     mStencil.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
     mStencil.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
+    mStencil.SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_HIDDEN, true);
 
     // Creates a background visual. Even if the color is transparent it updates the stencil.
     mStencil.SetProperty(Toolkit::Control::Property::BACKGROUND,