Don't block back button after keyboard is hidden

The back button would be non-responsive for 5 seconds after
hiding the software keyboard. This is a minimal change that
does not look into why we need to have a 5 second delay in
the first place.

Task-number: QTBUG-30752

Change-Id: Ied514b77650cea7accc37a03efef2ce861090f65
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Paul Olav Tvete 2013-04-26 16:24:22 +02:00 committed by The Qt Project
parent c56372e379
commit 8d1b8b97ac

View File

@ -704,10 +704,8 @@ public class QtActivityDelegate
}
}
if (keyCode == KeyEvent.KEYCODE_BACK && m_keyboardIsVisible)
{
if (!m_keyboardIsHiding)
hideSoftwareKeyboard();
if (keyCode == KeyEvent.KEYCODE_BACK && m_keyboardIsVisible && !m_keyboardIsHiding) {
hideSoftwareKeyboard();
return true;
}