Change SetEnableState() function logic - Call SetFocused(false) if enabledState is...
authorjaewon7.cho <jaewon7.cho@samsung.com>
Mon, 18 Mar 2013 06:28:31 +0000 (15:28 +0900)
committerjaewon7.cho <jaewon7.cho@samsung.com>
Mon, 18 Mar 2013 07:10:13 +0000 (16:10 +0900)
Change-Id: If4c1c5ff0c8ab3a464794173d92bd53ea5b1b75f
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
src/ui/FUi_Control.cpp

index 2686d83..04ed479 100644 (file)
@@ -2624,6 +2624,10 @@ _Control::SetEnableState(bool enabledState)
        __enabledState = enabledState;
        if (changed)
        {
+               if (GetFocused() == this)
+               {
+                       SetFocused(false);
+               }
                CallOnAncestorEnableStateChanged();
        }
        __pAccessibilityContainer->SetEnableState(enabledState);