Revert "[Tizen] Do nothing when setting focus on same actor" 44/122344/1
authordongsug.song <dongsug.song@samsung.com>
Fri, 31 Mar 2017 05:13:08 +0000 (14:13 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 31 Mar 2017 05:13:14 +0000 (14:13 +0900)
This reverts commit 09bc9c806e6f74657cebeadc4da32319924a716f.

Change-Id: I900191d437a94a79a0f69b92cd37e2681fb146f4

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

index ef613e7..d3e4b88 100644 (file)
@@ -144,18 +144,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() )
   {
@@ -163,8 +151,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);