Update nickname modal to confirm when press Enter key

Fixes #1605
This commit is contained in:
staked-smart-ace 2021-01-13 04:31:26 +04:00 committed by Pascal Precht
parent a5fce2b7de
commit 9facb14808
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

View File

@ -78,6 +78,11 @@ ModalPopup {
anchors.topMargin: Style.current.padding
//% "Your nickname is too long"
validationError: popup.nicknameTooLong ? qsTrId("your-nickname-is-too-long") : ""
Keys.onReleased: {
if (event.key === Qt.Key_Return) {
doneBtn.onClicked();
}
}
}
StyledText {