Invisible control can not be received focus
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Fri, 10 May 2013 12:02:58 +0000 (21:02 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Fri, 10 May 2013 12:48:47 +0000 (21:48 +0900)
Change-Id: I86f1115285d436c7153d4154f1ca01d4e3f745db
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
apply code review

Change-Id: Id7f06ceea177de907b56b67be87426504b78b439
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_Control.cpp

index 99ca14d..9e9e7f5 100644 (file)
@@ -2526,6 +2526,12 @@ _Control::SetFocused(bool on)
                                IsFocusable(), E_INVALID_OPERATION,
                                E_INVALID_OPERATION, "[E_INVALID_OPERATION] This Control isn't focusable control.");
 
+       bool isVisible = IsVisible();
+       if (isVisible == false)
+       {
+               return E_SUCCESS;
+       }
+
        if (on)
        {
                _Window* pTop = GetRootWindow();