Revert "[Tizen] Add Tab key focus movement."
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:22:57 +0000 (15:22 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:22:57 +0000 (15:22 +0900)
This reverts commit b4587f97560124034db43d3ae0d4cbb520eba1ed.

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

index c03b7dd..8dadb11 100644 (file)
@@ -878,15 +878,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event)
       {
         // "Tab" key changes the focus group in the forward direction and
         // "Shift-Tab" key changes it in the backward direction.
-        if(!DoMoveFocusToNextFocusGroup(!event.IsShiftModifier()))
-        {
-          // If the focus group is not changed, Move the focus towards right, "Shift-Tap" key moves the focus towards left.
-          if(!MoveFocus(event.IsShiftModifier() ? Toolkit::Control::KeyboardFocus::LEFT : Toolkit::Control::KeyboardFocus::RIGHT))
-          {
-            // If the focus is not moved, Move the focus towards down, "Shift-Tap" key moves the focus towards up.
-            MoveFocus(event.IsShiftModifier() ? Toolkit::Control::KeyboardFocus::UP : Toolkit::Control::KeyboardFocus::DOWN);
-          }
-        }
+        DoMoveFocusToNextFocusGroup(!event.IsShiftModifier());
       }
 
       isFocusStartableKey = true;