From 39226bbcd693e4f1c1de3003b8c4b78b6a9d823a Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Thu, 19 Aug 2021 15:41:48 +0900 Subject: [PATCH] If parent is hidden, the child cannot be focused. Change-Id: I4b8fc1d81099583805c3bfc7ab4fd33231bc9f16 --- dali-toolkit/devel-api/focus-manager/focus-finder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dali-toolkit/devel-api/focus-manager/focus-finder.cpp b/dali-toolkit/devel-api/focus-manager/focus-finder.cpp index 0cf66cd..2679dda 100644 --- a/dali-toolkit/devel-api/focus-manager/focus-finder.cpp +++ b/dali-toolkit/devel-api/focus-manager/focus-finder.cpp @@ -344,14 +344,13 @@ bool IsFocusable(Actor& actor) { return (actor.GetProperty(Actor::Property::KEYBOARD_FOCUSABLE) && actor.GetProperty(Actor::Property::VISIBLE) && - actor.GetProperty(Actor::Property::SENSITIVE) && actor.GetProperty(Actor::Property::WORLD_COLOR).a > FULLY_TRANSPARENT); } Actor FindNextFocus(Actor& actor, Actor& focusedActor, Rect& focusedRect, Rect& bestCandidateRect, Toolkit::Control::KeyboardFocus::Direction direction) { Actor nearestActor; - if(actor) + if(actor && actor.GetProperty(Actor::Property::VISIBLE)) { // Recursively children const auto childCount = actor.GetChildCount(); -- 2.7.4