Support multiline on Android #426
|
@ -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()
|
||||
|
|
Reference in New Issue