diff options
author | cuoco <cuoco@themanaworld.org> | 2022-12-23 09:20:38 +0100 |
---|---|---|
committer | cuoco <cuoco@themanaworld.org> | 2022-12-23 09:20:38 +0100 |
commit | e97eda320eea1359320bb039d656a835d69cbfc5 (patch) | |
tree | 60b7620595488a258324a678fb6f7a8a979ec694 | |
parent | 2283fdf7d0ffd1d65f42f7586d3e5b365ca195d0 (diff) | |
download | plus-e97eda320eea1359320bb039d656a835d69cbfc5.tar.gz plus-e97eda320eea1359320bb039d656a835d69cbfc5.tar.bz2 plus-e97eda320eea1359320bb039d656a835d69cbfc5.tar.xz plus-e97eda320eea1359320bb039d656a835d69cbfc5.zip |
spaces
-rw-r--r-- | src/gui/windows/worldselectdialog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp index 80ec2aaff..ecfcbfc94 100644 --- a/src/gui/windows/worldselectdialog.cpp +++ b/src/gui/windows/worldselectdialog.cpp @@ -134,14 +134,17 @@ 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); |