Fix for N_SE-40699
authorAyush <ayush.sriv@samsung.com>
Thu, 6 Jun 2013 12:12:01 +0000 (17:42 +0530)
committerAyush <ayush.sriv@samsung.com>
Thu, 6 Jun 2013 12:23:30 +0000 (17:53 +0530)
Change-Id: I845fc98b94886ac9051ffbd98232fae710d91654
Signed-off-by: Ayush <ayush.sriv@samsung.com>
src/ui/controls/FUiCtrl_SearchBar.cpp

index 1ad9ffe..311cb6c 100644 (file)
@@ -1801,13 +1801,18 @@ _SearchBar::OnFocusLost(const _Control &source)
 bool
 _SearchBar::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 {
-       _KeyCode keyCode = keyInfo.GetKeyCode();
+       if (!__pEdit->IsUsbKeyboardConnected())
+       {
+               return false;
+       }
 
        if (!__pEdit->IsSearchFieldFocused())
        {
                return false;
        }
 
+       _KeyCode keyCode = keyInfo.GetKeyCode();
+
        switch (keyCode)
        {
                case _KEY_RIGHT: