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: