diff --git a/native/LoginScreen.qml b/native/LoginScreen.qml index a4ec54d..ab326ad 100644 --- a/native/LoginScreen.qml +++ b/native/LoginScreen.qml @@ -39,25 +39,29 @@ Rectangle { id: nameT anchors{ - horizontalCenter: parent.horizontalCenter - topMargin: 5 - top: loginL.bottom + horizontalCenter: parent.horizontalCenter + topMargin: 5 + top: loginL.bottom } placeholderText: qsTr("Name") + Keys.onReturnPressed: passwordField.focus = true + } TextField { id: passwordT anchors{ - horizontalCenter: parent.horizontalCenter - topMargin: 5 - top: nameT.bottom + horizontalCenter: parent.horizontalCenter + topMargin: 5 + top: nameT.bottom } placeholderText: qsTr("Password") + Keys.onReturnPressed: login() + echoMode: TextInput.Password }