1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

chatview: focus on the message bar when selecting a conversation

This patch restores the auto focus with new QML message send bar.

Change-Id: I34e76c246c3d22c27d5e07f0294f18404a612f2c
This commit is contained in:
Andreas Traczyk 2021-08-16 14:11:11 -04:00 committed by Sébastien Blin
parent db6c39cc4c
commit 2410262fae
4 changed files with 9 additions and 1 deletions

View file

@ -135,6 +135,12 @@ ColumnLayout {
objectName: "messageBarTextArea"
// forward activeFocus to the actual text area object
onActiveFocusChanged: {
if (activeFocus)
textAreaObj.forceActiveFocus()
}
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
Layout.margins: marginSize / 2

View file

@ -28,6 +28,7 @@ Flickable {
id: root
property alias text: textArea.text
property var textAreaObj: textArea
property alias placeholderText: textArea.placeholderText
signal sendMessagesRequired

View file

@ -45,7 +45,7 @@ Rectangle {
}
function focusMessageWebView() {
messageWebView.forceActiveFocus()
messageWebViewFooter.textInput.forceActiveFocus()
}
function webViewRunJavaScript(arg) {

View file

@ -30,6 +30,7 @@ import "../../commoncomponents/emojipicker"
Rectangle {
id: root
property alias textInput: messageBar.textAreaObj
property string previousConvId: ""
function setFilePathsToSend(filePaths) {