Revert "[Tizen] Do nothing when setting focus on same actor" 99/125399/1
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 17 Apr 2017 04:01:26 +0000 (13:01 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Mon, 17 Apr 2017 04:01:35 +0000 (13:01 +0900)
This reverts commit 829ce86c6cc7594737010ec0cf56f66601526536.

Change-Id: I708b4baa86eea86e43bdc4537413b700b2c96f38

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

index ef613e7b4858f280d4d84be1f869142e330a4f40..d3e4b88e1b5d6528de74570493c005afd087c42e 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);