summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index 8c29847..367dc2c 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -48,6 +48,9 @@ QtLoginWindow::QtLoginWindow(const String& defaultJID, const String& defaultPass
credentialsLayout->setSpacing(3);
password_ = new QLineEdit(this);
password_->setEchoMode(QLineEdit::Password);
+ connect(password_, SIGNAL(returnPressed()), this, SLOT(loginClicked()));
+ connect(username_, SIGNAL(returnPressed()), password_, SLOT(setFocus()));
+ connect(username_, SIGNAL(returnPressed()), password_, SLOT(selectAll()));
credentialsLayout->addWidget(password_);
certificateButton_ = new QToolButton(this);