Revert "[Tizen] Do nothing when setting focus on same actor" 88/131788/1
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 09:21:55 +0000 (18:21 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Tue, 30 May 2017 09:21:57 +0000 (18:21 +0900)
This reverts commit 9aa8c91afcd462dce04ca182a5aafc4d73e4a1d6.

Change-Id: Ib136b8d5926cbeb9571db93d82de3404b23d7701

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