From 686cc88cc4a674e6d13f73eabdc12a52e7de4090 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Artur=20=C5=9Awigo=C5=84?= Date: Tue, 4 Jan 2022 10:36:43 +0100 Subject: [PATCH] [AT-SPI] Mark text cursors as ACCESSIBILITY_HIDDEN 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dali-toolkit/internal/text/decorator/text-decorator.cpp b/dali-toolkit/internal/text/decorator/text-decorator.cpp index c586deb..c948701 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.cpp +++ b/dali-toolkit/internal/text/decorator/text-decorator.cpp @@ -32,6 +32,7 @@ // INTERNAL INCLUDES #include +#include #include #include #include @@ -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 -- 2.7.4