Fix for N_SE-51834-Reset Focus from Annex
[platform/framework/native/uifw.git] / src / ui / controls / FUiCtrl_TableViewItem.cpp
index 012f09b..aaa692d 100644 (file)
@@ -5136,8 +5136,6 @@ _TableViewItem::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
 void
 _TableViewItem::OnFocusModeStateChanged(void)
 {
-       __releasedControl = TABLE_VIEW_ITEM_PRESSED_NONE;
-
        ResetItemState();
 }
 
@@ -5146,6 +5144,7 @@ _TableViewItem::ResetItemState(void)
 {
        __itemSelected = false;
        __drawingStatus = TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL;
+       __releasedControl = TABLE_VIEW_ITEM_PRESSED_NONE;
 
        if (__annexStyle == TABLE_VIEW_ANNEX_STYLE_DETAILED)
        {