[AT-SPI] Mark text cursors as ACCESSIBILITY_HIDDEN 96/268896/4
authorArtur Świgoń <a.swigon@samsung.com>
Tue, 4 Jan 2022 09:36:43 +0000 (10:36 +0100)
committerArtur Świgoń <a.swigon@samsung.com>
Tue, 18 Jan 2022 10:22:01 +0000 (11:22 +0100)
The text cursor is not an object the Accessibility user can directly
interact with, so it can be hidden from the AT-SPI tree. As an added
benefit, "signal: object:state-changed:visible" for the cursor object
will not be emitted on DBus twice every blink.

Change-Id: Ib148a8bac920cc9fb8c0f6f7158d62c20d995e6c

dali-toolkit/internal/text/decorator/text-decorator.cpp

index c586deb..c948701 100644 (file)
@@ -32,6 +32,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/devel-api/controls/control-depth-index-ranges.h>
+#include <dali-toolkit/devel-api/controls/control-devel.h>
 #include <dali-toolkit/internal/controls/image-view/image-view-impl.h>
 #include <dali-toolkit/internal/graphics/builtin-shader-extern-gen.h>
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
@@ -631,6 +632,7 @@ struct Decorator::Impl : public ConnectionTracker
     cursor.SetBackgroundColor(color);
     cursor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
     cursor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+    cursor.SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_HIDDEN, true);
   }
 
   // Add or Remove cursor(s) from parent