Support multiline on Android
the build was successful Details

This commit is contained in:
Sarah Jamie Lewis 2020-11-26 17:39:55 -08:00
parent c1bc5a7806
commit 05cd440036
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()