From: joogab yun Date: Tue, 8 Mar 2022 00:58:02 +0000 (+0000) Subject: Merge "Remove dead code." into devel/master X-Git-Tag: dali_2.1.13~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7e3a56ad86f6f45b9cd126647a6161757c3674e;hp=c398078ee3fe4d2edb6e410a33d9e03106d059d0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Merge "Remove dead code." into devel/master --- 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 4afb39a..75ffbfb 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -784,20 +784,10 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) { if(keyName == "Left") { - if(!mIsFocusIndicatorShown) + if(mIsFocusIndicatorShown == HIDE) { - if(mIsFocusIndicatorShown == HIDE) - { - // Show focus indicator - mIsFocusIndicatorShown = SHOW; - } - else - { - // Move the focus towards left - MoveFocus(Toolkit::Control::KeyboardFocus::LEFT); - } - - isFocusStartableKey = true; + // Show focus indicator + mIsFocusIndicatorShown = SHOW; } else { @@ -809,18 +799,10 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) } else if(keyName == "Right") { - if(!mIsFocusIndicatorShown) + if(mIsFocusIndicatorShown == HIDE) { - if(mIsFocusIndicatorShown == HIDE) - { - // Show focus indicator - mIsFocusIndicatorShown = SHOW; - } - else - { - // Move the focus towards right - MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT); - } + // Show focus indicator + mIsFocusIndicatorShown = SHOW; } else {