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:
parent
34d097be20
commit
f906c4e80f
3 changed files with 24 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue