Revert "[Tizen] Do nothing when setting focus on same actor" 51/129451/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Tue, 16 May 2017 08:14:06 +0000 (17:14 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Tue, 16 May 2017 08:14:18 +0000 (17:14 +0900)
This reverts commit bac0444b21e157f604acc9bd91f5876666ddac0c.

Change-Id: I49fe690c350e2e566b934cb8bf610ac2d0295e55

dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp

index 2ad1502..d58560d 100644 (file)
@@ -143,18 +143,6 @@ bool KeyboardFocusManager::DoSetCurrentFocusActor( Actor actor )
 {
   bool success = false;
 
-  Actor currentFocusedActor = GetCurrentFocusActor();
-
-  // If developer set focus on same actor, doing nothing
-  if( actor == currentFocusedActor )
-  {
-    if( !actor )
-    {
-      return false;
-    }
-    return true;
-  }
-
   // Check whether the actor is in the stage and is keyboard focusable.
   if( actor && actor.IsKeyboardFocusable() )
   {
@@ -162,8 +150,9 @@ bool KeyboardFocusManager::DoSetCurrentFocusActor( Actor actor )
     {
       actor.Add( GetFocusIndicatorActor() );
     }
-
     // Send notification for the change of focus actor
+    Actor currentFocusedActor = GetCurrentFocusActor();
+
     if( !mFocusChangedSignal.Empty() )
     {
       mFocusChangedSignal.Emit(currentFocusedActor, actor);