From 4a562612696c80cb12b2c32c75102fe21dc9e46c Mon Sep 17 00:00:00 2001 From: "keonpyo.kong" Date: Fri, 10 May 2013 21:02:58 +0900 Subject: [PATCH] Invisible control can not be received focus Change-Id: I86f1115285d436c7153d4154f1ca01d4e3f745db Signed-off-by: keonpyo.kong apply code review Change-Id: Id7f06ceea177de907b56b67be87426504b78b439 Signed-off-by: keonpyo.kong --- src/ui/FUi_Control.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/FUi_Control.cpp b/src/ui/FUi_Control.cpp index 99ca14d..9e9e7f5 100644 --- a/src/ui/FUi_Control.cpp +++ b/src/ui/FUi_Control.cpp @@ -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(); -- 2.7.4