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:
parent
db6c39cc4c
commit
2410262fae
4 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue