Revert "[Tizen] Do nothing when setting focus on same actor" 24/124024/1
authorminho.sun <minho.sun@samsung.com>
Mon, 10 Apr 2017 03:05:38 +0000 (12:05 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 10 Apr 2017 03:05:40 +0000 (12:05 +0900)
This reverts commit 668f023b25c26351e46c55500da0843b6ded94d0.

Change-Id: Ia3f11aecfa4ce1bffef901cca3eda766ae9b8fd1

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);