mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 12:08:53 +00:00
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…
x
Reference in New Issue
Block a user