From e97eda320eea1359320bb039d656a835d69cbfc5 Mon Sep 17 00:00:00 2001 From: cuoco Date: Fri, 23 Dec 2022 09:20:38 +0100 Subject: spaces --- src/gui/windows/worldselectdialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2