Accept Enter key on UM3 Add Printer Dialog

This commit is contained in:
Lipu Fei 2017-05-03 13:58:58 +02:00
parent a5033bae54
commit c2dff9fcd9

View file

@ -342,6 +342,8 @@ Cura.MachineAction
{ {
regExp: /[a-zA-Z0-9\.\-\_]*/ regExp: /[a-zA-Z0-9\.\-\_]*/
} }
onAccepted: btnOk.click()
} }
} }
@ -355,6 +357,7 @@ Cura.MachineAction
} }
}, },
Button { Button {
id: btnOk
text: catalog.i18nc("@action:button", "Ok") text: catalog.i18nc("@action:button", "Ok")
onClicked: onClicked:
{ {