GUI: Tweaked the launcher so that TAB switches focus between the list and the quick search field

svn-id: r41311
This commit is contained in:
Max Horn 2009-06-06 23:22:48 +00:00
parent 34d097be20
commit f906c4e80f
3 changed files with 24 additions and 13 deletions

View file

@ -871,6 +871,14 @@ void LauncherDialog::loadGame(int item) {
}
void LauncherDialog::handleKeyDown(Common::KeyState state) {
if (state.keycode == Common::KEYCODE_TAB) {
// Toggle between the game list and the quick search field.
if (getFocusWidget() == _searchWidget) {
setFocusWidget(_list);
} else if (getFocusWidget() == _list) {
setFocusWidget(_searchWidget);
}
}
Dialog::handleKeyDown(state);
updateButtons();
}