Merge "Add focus indicator only when attaching physicalkeyboard" into devel/master
authorminho.sun <minho.sun@samsung.com>
Fri, 2 Dec 2016 01:45:23 +0000 (17:45 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 2 Dec 2016 01:45:23 +0000 (17:45 -0800)
dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp

index 54d8afa..e6ed691 100644 (file)
@@ -149,9 +149,11 @@ bool KeyboardFocusManager::DoSetCurrentFocusActor( const unsigned int actorID )
   if( actor && actor.IsKeyboardFocusable() )
   {
     mIsFocusIndicatorEnabled = true;
-    // Draw the focus indicator upon the focused actor
-    actor.Add( GetFocusIndicatorActor() );
-
+    // Draw the focus indicator upon the focused actor when PhysicalKeyboard is attached
+    if( mIsKeyboardFocusEnabled )
+    {
+      actor.Add( GetFocusIndicatorActor() );
+    }
     // Send notification for the change of focus actor
     if( !mFocusChangedSignal.Empty() )
     {