Add enter-based navigation to login dialog
This commit is contained in:
parent
0f21582752
commit
b1e87ee647
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue