From: joogab.yun Date: Mon, 7 Mar 2022 06:50:01 +0000 (+0900) Subject: Remove dead code. X-Git-Tag: dali_2.1.13~6^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=219da5bba73e931fe7819b3c9e9c90dad015c0e0 Remove dead code. https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/206393/ Patch contains some incorrect code. I remove dead code. Change-Id: Iff60034f8e78b54f132717ead1955a2a9cadfa97 --- 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 {