From b1f2f6507e87e6de265abf0f7d0a104d8d296890 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 11 Jul 2024 11:47:46 +0200 Subject: [PATCH] native: login screen make enter work --- native/LoginScreen.qml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 }