aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorMax Horn2009-06-06 23:22:48 +0000
committerMax Horn2009-06-06 23:22:48 +0000
commitf906c4e80f12ebc1c46fe8c80dfa26ff0e4d64aa (patch)
tree238ea155c88fcc9f5d18c3ee94dd5ad60c6e3d2c /gui/launcher.cpp
parent34d097be204ca448202da34852dd4df397fcd83b (diff)
downloadscummvm-rg350-f906c4e80f12ebc1c46fe8c80dfa26ff0e4d64aa.tar.gz
scummvm-rg350-f906c4e80f12ebc1c46fe8c80dfa26ff0e4d64aa.tar.bz2
scummvm-rg350-f906c4e80f12ebc1c46fe8c80dfa26ff0e4d64aa.zip
GUI: Tweaked the launcher so that TAB switches focus between the list and the quick search field
svn-id: r41311
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 3b844c20b1..aebe3d4aa9 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -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();
}