Add enter-based navigation to login dialog

This commit is contained in:
Nicolas Fella 2019-03-08 00:19:25 +00:00 committed by Black Hat
parent 0f21582752
commit b1e87ee647
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,8 @@ ApplicationWindow {
id: usernameField id: usernameField
placeholderText: "Username" placeholderText: "Username"
onAccepted: passwordField.forceActiveFocus()
} }
AutoTextField { AutoTextField {
@ -110,6 +112,8 @@ ApplicationWindow {
placeholderText: "Password" placeholderText: "Password"
echoMode: TextInput.Password echoMode: TextInput.Password
onAccepted: loginDialog.doLogin()
} }
} }