Revert "[Tizen] Do nothing when setting focus on same actor" 85/128185/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 8 May 2017 03:51:31 +0000 (12:51 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 8 May 2017 03:51:39 +0000 (12:51 +0900)
This reverts commit 9c051cd8ef4e8b3d2019fd659e24e2d6be2cb85a.

Change-Id: I4e6a477d7d3398fac1077dfe625083d6737ac121

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