summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/worldselectdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index f99467b5d..36cd57e07 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -134,17 +134,18 @@ void WorldSelectDialog::keyPressed(KeyEvent &event)
action(ActionEvent(nullptr, mChooseWorld->getActionEventId()));
}
- if (actionId == InputAction::GUI_UP) {
+ if (actionId == InputAction::GUI_UP)
+ {
event.consume();
-
- if (mWorldList->getSelected() > 0) {
+ if (mWorldList->getSelected() > 0)
+ {
mWorldList->setSelected(mWorldList->getSelected() - 1);
}
}
- if (actionId == InputAction::GUI_DOWN) {
+ if (actionId == InputAction::GUI_DOWN)
+ {
event.consume();
-
mWorldList->setSelected(mWorldList->getSelected() + 1);
}
}