Fix for N_SE-38954
authorAyush <ayush.sriv@samsung.com>
Tue, 21 May 2013 04:27:13 +0000 (09:57 +0530)
committerAyush <ayush.sriv@samsung.com>
Tue, 21 May 2013 14:00:03 +0000 (19:30 +0530)
Change-Id: Ieef681d368a8de33c88501e511d5c45e7875ce17
Signed-off-by: Ayush <ayush.sriv@samsung.com>
src/ui/controls/FUiCtrl_SearchBar.cpp

index 4038da9..ae45a68 100644 (file)
@@ -1773,8 +1773,12 @@ _SearchBar::OnFontInfoRequested(unsigned long& style, int& size)
 bool
 _SearchBar::OnFocusGained(const _Control& source)
 {
-       SetMode(SEARCH_BAR_MODE_INPUT);
-       __pEdit->SetFocused();
+       if (GetVisibleState() == true)
+       {
+               SetMode(SEARCH_BAR_MODE_INPUT);
+               __pEdit->SetFocused();
+       }
+
        return false;
 }