From 955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Nov 2011 03:16:39 +0300 Subject: Fix code style. --- src/gui/quitdialog.cpp | 3 ++- src/gui/updaterwindow.cpp | 3 ++- src/gui/worldselectdialog.cpp | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp index 0f4d7f6f7..450cfd86e 100644 --- a/src/gui/quitdialog.cpp +++ b/src/gui/quitdialog.cpp @@ -165,7 +165,8 @@ void QuitDialog::keyPressed(gcn::KeyEvent &keyEvent) action(gcn::ActionEvent(nullptr, mOkButton->getActionEventId())); break; case Key::ESCAPE: - action(gcn::ActionEvent(nullptr, mCancelButton->getActionEventId())); + action(gcn::ActionEvent(nullptr, + mCancelButton->getActionEventId())); break; case Key::UP: dir = -1; diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index ed745aa74..ac51cc76f 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -268,7 +268,8 @@ void UpdaterWindow::keyPressed(gcn::KeyEvent &keyEvent) } else { - action(gcn::ActionEvent(nullptr, mCancelButton->getActionEventId())); + action(gcn::ActionEvent(nullptr, + mCancelButton->getActionEventId())); } } } diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp index f7b505610..ae5345031 100644 --- a/src/gui/worldselectdialog.cpp +++ b/src/gui/worldselectdialog.cpp @@ -140,7 +140,12 @@ void WorldSelectDialog::keyPressed(gcn::KeyEvent &keyEvent) gcn::Key key = keyEvent.getKey(); if (key.getValue() == Key::ESCAPE) - action(gcn::ActionEvent(nullptr, mChangeLoginButton->getActionEventId())); + { + action(gcn::ActionEvent(nullptr, + mChangeLoginButton->getActionEventId())); + } else if (key.getValue() == Key::ENTER) + { action(gcn::ActionEvent(nullptr, mChooseWorld->getActionEventId())); + } } -- cgit v1.2.3-70-g09d2