From 5b71f181969c17b67521ca3cb5a15308b1c10e55 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Thu, 16 Jun 2022 16:25:37 +0900 Subject: [PATCH] If the default algorithm is enabled, there is no need to do "MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT, deviceName);" because nextFocus is automatically found. So we add conditional statements. Change-Id: I7b4cafd7f514d38141e4918c1651f229b063d595 --- dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3df6d4b..07dc86d 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -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 -- 2.7.4