mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-06 02:37:21 +03:00
Allow accepting set password prompt with enter
This commit is contained in:
parent
f6af80c3e3
commit
6494a4c230
@ -45,7 +45,7 @@ DefaultDialog {
|
||||
}
|
||||
|
||||
function promptAccepted() {
|
||||
close();
|
||||
close()
|
||||
accepted()
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ DefaultDialog {
|
||||
id: confirmPassword
|
||||
echoMode: TextInput.Password
|
||||
Layout.fillWidth: true
|
||||
onAccepted: promptAccepted()
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
@ -40,10 +41,7 @@ DefaultDialog {
|
||||
Button {
|
||||
text: qsTr("Set password")
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||
onClicked: {
|
||||
close()
|
||||
accepted()
|
||||
}
|
||||
onClicked: promptAccepted()
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Cancel")
|
||||
@ -51,4 +49,8 @@ DefaultDialog {
|
||||
}
|
||||
}
|
||||
}
|
||||
function promptAccepted() {
|
||||
close()
|
||||
accepted()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user