Focus the chat bar when replying to a message

Just a nice UX thing, otherwise you have to manually focus the chat bar
again with a keyboard or mouse.
This commit is contained in:
Joshua Goins
2025-05-14 18:47:07 -04:00
parent fda84a6aac
commit e2c0316e7d

View File

@@ -376,6 +376,9 @@ QQC2.Control {
replyAuthor: _private.chatBarCache.relationAuthor
replyContentModel: ContentProvider.contentModelForEvent(root.currentRoom, _private.chatBarCache.replyId, true)
Message.maxContentWidth: replyLoader.item.width
// When the user replies to a message and the preview is loaded, make sure the text field is focused again
Component.onCompleted: textField.forceActiveFocus(Qt.OtherFocusReason)
}
QQC2.Button {
id: cancelButton