native: login screen make enter work
This commit is contained in:
parent
067402a0fd
commit
b1f2f6507e
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue