If the default algorithm is enabled, there is no need to do "MoveFocus(Toolkit::Contr... 23/276423/3
authorjoogab.yun <joogab.yun@samsung.com>
Thu, 16 Jun 2022 07:25:37 +0000 (16:25 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 16 Jun 2022 07:58:42 +0000 (16:58 +0900)
So we add conditional statements.

Change-Id: I7b4cafd7f514d38141e4918c1651f229b063d595

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

index 3df6d4b172836764eea359cb62d8d857610a0241..07dc86dee4b907313f5b6215c855b59c22896f05 100644 (file)
@@ -986,7 +986,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event)
         actor.Add(GetFocusIndicatorActor());
       }
     }
-    else
+    else if(!mEnableDefaultAlgorithm)
     {
       // No actor is focused but keyboard focus is activated by the key press
       // Let's try to move the initial focus