From: Ayush Date: Thu, 6 Jun 2013 12:12:01 +0000 (+0530) Subject: Fix for N_SE-40699 X-Git-Tag: submit/tizen_2.2/20130714.153149~616^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6016f753dff69e1d91f34c14522d8480b7d9d1d;p=framework%2Fosp%2Fuifw.git Fix for N_SE-40699 Change-Id: I845fc98b94886ac9051ffbd98232fae710d91654 Signed-off-by: Ayush --- diff --git a/src/ui/controls/FUiCtrl_SearchBar.cpp b/src/ui/controls/FUiCtrl_SearchBar.cpp index 1ad9ffe..311cb6c 100644 --- a/src/ui/controls/FUiCtrl_SearchBar.cpp +++ b/src/ui/controls/FUiCtrl_SearchBar.cpp @@ -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: