If parent is hidden, the child cannot be focused. 53/262753/2
authorjoogab.yun <joogab.yun@samsung.com>
Thu, 19 Aug 2021 06:41:48 +0000 (15:41 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 19 Aug 2021 07:21:37 +0000 (16:21 +0900)
Change-Id: I4b8fc1d81099583805c3bfc7ab4fd33231bc9f16

dali-toolkit/devel-api/focus-manager/focus-finder.cpp

index 0cf66cd..2679dda 100644 (file)
@@ -344,14 +344,13 @@ bool IsFocusable(Actor& actor)
 {\r
   return (actor.GetProperty<bool>(Actor::Property::KEYBOARD_FOCUSABLE) &&\r
           actor.GetProperty<bool>(Actor::Property::VISIBLE) &&\r
-          actor.GetProperty<bool>(Actor::Property::SENSITIVE) &&\r
           actor.GetProperty<Vector4>(Actor::Property::WORLD_COLOR).a > FULLY_TRANSPARENT);\r
 }\r
 \r
 Actor FindNextFocus(Actor& actor, Actor& focusedActor, Rect<float>& focusedRect, Rect<float>& bestCandidateRect, Toolkit::Control::KeyboardFocus::Direction direction)\r
 {\r
   Actor nearestActor;\r
-  if(actor)\r
+  if(actor && actor.GetProperty<bool>(Actor::Property::VISIBLE))\r
   {\r
     // Recursively children\r
     const auto childCount = actor.GetChildCount();\r