Support multiline on Android
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
c1bc5a7806
commit
05cd440036
|
@ -118,9 +118,9 @@ ColumnLayout {
|
||||||
property int previousCursor
|
property int previousCursor
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
if (gcd.os == "android") return
|
if (gcd.os == "android") {
|
||||||
|
txtMessage.insert(txtMessage.cursorPosition, "\n")
|
||||||
if (event.modifiers & Qt.ShiftModifier) {
|
} else if (event.modifiers & Qt.ShiftModifier) {
|
||||||
txtMessage.insert(txtMessage.cursorPosition, "\n")
|
txtMessage.insert(txtMessage.cursorPosition, "\n")
|
||||||
} else if (event.modifiers == Qt.NoModifier) {
|
} else if (event.modifiers == Qt.NoModifier) {
|
||||||
btnSend.clicked()
|
btnSend.clicked()
|
||||||
|
|
Reference in New Issue