diff --git a/imports/Spectral/Page/Login.qml b/imports/Spectral/Page/Login.qml index dc72465..b949e86 100644 --- a/imports/Spectral/Page/Login.qml +++ b/imports/Spectral/Page/Login.qml @@ -1,7 +1,14 @@ import QtQuick 2.9 LoginForm { - loginButton.onClicked: { + loginButton.onClicked: doLogin() + + Shortcut { + sequence: "Return" + onActivated: doLogin() + } + + function doLogin() { if (!(serverField.text.startsWith("http") && serverField.text.includes("://"))) { loginButtonTooltip.text = "Server address should start with http(s)://" loginButtonTooltip.open()