[AT-SPI] Remove Text{Editor,Field}::mStencil from the tree 98/293398/1
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 13:01:01 +0000 (15:01 +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 18fb2fa..765d304 100644 (file)
@@ -617,6 +617,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 96edfe4..499121a 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,