native: login screen make enter work

This commit is contained in:
jopejoe1 2024-07-11 11:47:46 +02:00
parent 067402a0fd
commit b1f2f6507e

View file

@ -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
}