Sync cursor state when ancestor enable state is changed
authorTaejun <tj.twt.park@samsung.com>
Mon, 9 Sep 2013 05:27:26 +0000 (14:27 +0900)
committerTaejun <tj.twt.park@samsung.com>
Mon, 9 Sep 2013 05:27:26 +0000 (14:27 +0900)
Change-Id: I2aaf6d01110236861e369c4c486961f4808ada14

src/ui/controls/FUiCtrl_Edit.cpp

index 975ecc0..53a8430 100755 (executable)
@@ -2166,13 +2166,11 @@ _Edit::OnAncestorEnableStateChanged(const _Control& control)
                }
        }
 
-       if (this == dynamic_cast< const _Edit* >(&control))
+       _pEditPresenter->SetKeypadEventSkipped(!enableState);
+
+       if (__inputStyle != INPUT_STYLE_FULLSCREEN)
        {
-               _pEditPresenter->SetKeypadEventSkipped(!enableState);
-               if (__inputStyle != INPUT_STYLE_FULLSCREEN)
-               {
-                       _pEditPresenter->SetCursorDisabled(!enableState);
-               }
+               _pEditPresenter->SetCursorDisabled(!enableState);
        }
 
        Invalidate();