Focus reason field by default in RedactPopup
This commit is contained in:
parent
1e049a0159
commit
5f38788434
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user