From: Artur Świgoń Date: Tue, 4 Jan 2022 09:36:43 +0000 (+0100) Subject: [AT-SPI] Mark text cursors as ACCESSIBILITY_HIDDEN X-Git-Tag: dali_2.1.7~11^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=refs%2Fchanges%2F96%2F268896%2F4 [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 --- 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