diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-09 03:16:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-09 03:16:39 +0300 |
commit | 955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338 (patch) | |
tree | 8f5fc1cd758da4bda6a305ebcd95d3ccd719d98e /src/gui/worldselectdialog.cpp | |
parent | 274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (diff) | |
download | mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.gz mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.bz2 mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.xz mv-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.zip |
Fix code style.
Diffstat (limited to 'src/gui/worldselectdialog.cpp')
-rw-r--r-- | src/gui/worldselectdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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())); + } } |