From e2c0316e7dd67b5d1a6c47cb28697b5491f1e01d Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 14 May 2025 18:47:07 -0400 Subject: [PATCH] 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. --- src/chatbar/ChatBar.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chatbar/ChatBar.qml b/src/chatbar/ChatBar.qml index 1ef0af8fe..93af4be30 100644 --- a/src/chatbar/ChatBar.qml +++ b/src/chatbar/ChatBar.qml @@ -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