Merge pull request 'Support multiline on Android' (#426) from user-feedback-elide into master
the build was successful Details

Reviewed-on: #426
This commit is contained in:
erinn 2020-11-27 13:38:54 -08:00
commit 38923ef814
1 changed files with 3 additions and 3 deletions

View File

@ -118,9 +118,9 @@ ColumnLayout {
property int previousCursor
Keys.onReturnPressed: {
if (gcd.os == "android") return
if (event.modifiers & Qt.ShiftModifier) {
if (gcd.os == "android") {
txtMessage.insert(txtMessage.cursorPosition, "\n")
} else if (event.modifiers & Qt.ShiftModifier) {
txtMessage.insert(txtMessage.cursorPosition, "\n")
} else if (event.modifiers == Qt.NoModifier) {
btnSend.clicked()