mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Fix keyboard focus on the login page
This commit is contained in:
parent
01293edb60
commit
b878b923b6
1 changed files with 9 additions and 1 deletions
|
@ -154,7 +154,13 @@ Controls.Control {
|
|||
label: page.profile.account.isSapphire ? i18n("Password") : i18n("Square Enix Password")
|
||||
echoMode: TextInput.Password
|
||||
focus: true
|
||||
onAccepted: otpField.clicked()
|
||||
onAccepted: {
|
||||
if (otpField.visible) {
|
||||
otpField.clicked();
|
||||
} else {
|
||||
loginButton.clicked();
|
||||
}
|
||||
}
|
||||
text: page.profile.account.rememberPassword ? "abcdefg" : ""
|
||||
}
|
||||
|
||||
|
@ -197,4 +203,6 @@ Controls.Control {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: passwordField.forceActiveFocus()
|
||||
}
|
Loading…
Add table
Reference in a new issue