Skip to content
Snippets Groups Projects
Commit 2410262f authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Sébastien Blin
Browse files

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
parent db6c39cc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -28,6 +28,7 @@ Flickable {
id: root
property alias text: textArea.text
property var textAreaObj: textArea
property alias placeholderText: textArea.placeholderText
signal sendMessagesRequired
......
......@@ -45,7 +45,7 @@ Rectangle {
}
function focusMessageWebView() {
messageWebView.forceActiveFocus()
messageWebViewFooter.textInput.forceActiveFocus()
}
function webViewRunJavaScript(arg) {
......
......@@ -30,6 +30,7 @@ import "../../commoncomponents/emojipicker"
Rectangle {
id: root
property alias textInput: messageBar.textAreaObj
property string previousConvId: ""
function setFilePathsToSend(filePaths) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment