fix(Onboarding): User is able to bypass validation of username when using keyboard
Fixes #6012
This commit is contained in:
parent
3aba152206
commit
5feef166f8
|
@ -151,7 +151,9 @@ Item {
|
||||||
onKeyPressed: {
|
onKeyPressed: {
|
||||||
if (input.edit.keyEvent === Qt.Key_Return || input.edit.keyEvent === Qt.Key_Enter) {
|
if (input.edit.keyEvent === Qt.Key_Return || input.edit.keyEvent === Qt.Key_Enter) {
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
nextBtn.clicked(null)
|
if(nextBtn.enabled) {
|
||||||
|
nextBtn.clicked(null)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue