fix(@desktop/onboarding): add password fields autofocus
- update views exposed functions Closes: #6577
This commit is contained in:
parent
0419f8077d
commit
4d0bfcc501
|
@ -24,10 +24,9 @@ Item {
|
|||
|
||||
Component.onCompleted: {
|
||||
root.password = root.startupStore.getPassword()
|
||||
d.forcePasswordInputFocus()
|
||||
}
|
||||
|
||||
function forcePswInputFocus() { confPswInput.forceActiveFocus(Qt.MouseFocusReason)}
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
||||
|
@ -46,6 +45,8 @@ Item {
|
|||
|
||||
root.startupStore.doPrimaryAction()
|
||||
}
|
||||
|
||||
function forcePasswordInputFocus() { confPswInput.forceActiveFocus(Qt.MouseFocusReason) }
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
|
@ -18,10 +18,9 @@ Item {
|
|||
Component.onCompleted: {
|
||||
view.newPswText = root.startupStore.getPassword()
|
||||
view.confirmationPswText = root.startupStore.getPassword()
|
||||
d.forcePasswordInputFocus()
|
||||
}
|
||||
|
||||
function forceNewPswInputFocus() { view.forceNewPswInputFocus() }
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
readonly property int zBehind: 1
|
||||
|
@ -31,6 +30,8 @@ Item {
|
|||
root.startupStore.setPassword(view.newPswText)
|
||||
root.startupStore.doPrimaryAction()
|
||||
}
|
||||
|
||||
function forcePasswordInputFocus() { view.forceNewPswInputFocus() }
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
Loading…
Reference in New Issue