Focus reason field by default in RedactPopup
This commit is contained in:
@@ -21,8 +21,9 @@ BoxPopup {
|
||||
""
|
||||
|
||||
okText: qsTr("Remove")
|
||||
box.focusButton: "ok"
|
||||
// box.focusButton: "ok"
|
||||
|
||||
onOpened: reasonField.field.forceActiveFocus()
|
||||
onOk: {
|
||||
const idsForSender = {} // {senderId: [event.id, ...]}
|
||||
|
||||
@@ -53,6 +54,7 @@ BoxPopup {
|
||||
HLabeledTextField {
|
||||
id: reasonField
|
||||
label.text: qsTr("Optional reason:")
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user