Focus reason field by default in RedactPopup

This commit is contained in:
miruka 2020-04-03 07:53:16 -04:00
parent 1e049a0159
commit 5f38788434

View File

@ -21,8 +21,9 @@ BoxPopup {
"" ""
okText: qsTr("Remove") okText: qsTr("Remove")
box.focusButton: "ok" // box.focusButton: "ok"
onOpened: reasonField.field.forceActiveFocus()
onOk: { onOk: {
const idsForSender = {} // {senderId: [event.id, ...]} const idsForSender = {} // {senderId: [event.id, ...]}
@ -53,6 +54,7 @@ BoxPopup {
HLabeledTextField { HLabeledTextField {
id: reasonField id: reasonField
label.text: qsTr("Optional reason:") label.text: qsTr("Optional reason:")
Layout.fillWidth: true Layout.fillWidth: true
} }
} }