summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/logindialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 798964945..9ef745cc3 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -274,8 +274,12 @@ void LoginDialog::keyPressed(KeyEvent &event)
{
action(ActionEvent(nullptr, mServerButton->getActionEventId()));
}
+#ifdef USE_SDL2
+ else if (actionId == InputAction::GUI_SELECT2)
+#else // USE_SDL2
else if (actionId == InputAction::GUI_SELECT ||
actionId == InputAction::GUI_SELECT2)
+#endif // USE_SDL2
{
action(ActionEvent(nullptr, mLoginButton->getActionEventId()));
}