From c7db626fe12c997353acf3524fd819a1420116e0 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Fri, 31 Mar 2017 14:13:08 +0900 Subject: [PATCH] Revert "[Tizen] Do nothing when setting focus on same actor" This reverts commit 09bc9c806e6f74657cebeadc4da32319924a716f. Change-Id: I900191d437a94a79a0f69b92cd37e2681fb146f4 --- .../focus-manager/keyboard-focus-manager-impl.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp index ef613e7..d3e4b88 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -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); -- 2.7.4