fix(Onboarding): User is able to bypass validation of username when using keyboard

Fixes #6012
This commit is contained in:
Noelia 2022-06-20 10:04:48 +02:00 committed by Iuri Matias
parent 3aba152206
commit 5feef166f8
1 changed files with 3 additions and 1 deletions

View File

@ -151,7 +151,9 @@ Item {
onKeyPressed: {
if (input.edit.keyEvent === Qt.Key_Return || input.edit.keyEvent === Qt.Key_Enter) {
event.accepted = true
nextBtn.clicked(null)
if(nextBtn.enabled) {
nextBtn.clicked(null)
}
}
}
}