Skip to content

Commit f022d6e

Browse files
committed
Fix keyboard covering after the image dialog has closed
1 parent bfc7234 commit f022d6e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

mobile/ChannelInputBar.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import lith 1.0
77

88
RowLayout {
99
spacing: 0
10+
// TODO
11+
property alias textInput: channelTextInput
1012
property bool hasFocus: channelTextInput.activeFocus
1113
Button {
1214
Layout.preferredWidth: height

mobile/ChannelView.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ ColumnLayout {
5555
//inputField.text += " " + fileUrl
5656
//imageButton.isBusy = false
5757
uploader.upload(fileUrl)
58+
Qt.inputMethod.hide()
59+
inputBar.textInput.forceActiveFocus()
60+
}
61+
onRejected: {
62+
Qt.inputMethod.hide()
63+
inputBar.textInput.forceActiveFocus()
5864
}
5965
}
6066
}

0 commit comments

Comments
 (0)