diff --git a/smsapp/qml/ChatMessage.qml b/smsapp/qml/ChatMessage.qml index 714a59ba4..4ed243051 100644 --- a/smsapp/qml/ChatMessage.qml +++ b/smsapp/qml/ChatMessage.qml @@ -76,7 +76,7 @@ Item { contextMenu.open(); } } - onPressAndHold: { + onPressAndHold: mouse => { var selectStart = messageLabel.selectionStart; var selectEnd = messageLabel.selectionEnd; selectedText = messageLabel.selectedText; diff --git a/smsapp/qml/ConversationList.qml b/smsapp/qml/ConversationList.qml index 0ad5661c7..4dcfad9e4 100644 --- a/smsapp/qml/ConversationList.qml +++ b/smsapp/qml/ConversationList.qml @@ -125,11 +125,11 @@ Kirigami.ScrollablePage view.currentIndex = 0 filter.forceActiveFocus(); } - Keys.onReturnPressed: { + Keys.onReturnPressed: event => { event.accepted = true view.currentItem.startChat() } - Keys.onEscapePressed: { + Keys.onEscapePressed: event => { event.accepted = filter.text != "" filter.text = "" } diff --git a/smsapp/qml/SendingArea.qml b/smsapp/qml/SendingArea.qml index 63a3697f8..23bf595b6 100644 --- a/smsapp/qml/SendingArea.qml +++ b/smsapp/qml/SendingArea.qml @@ -83,7 +83,7 @@ ColumnLayout { cursorShape: Qt.IBeamCursor z: 1 } - Keys.onReturnPressed: { + Keys.onReturnPressed: event => { if (event.key === Qt.Key_Return) { if (event.modifiers & Qt.ShiftModifier) { messageField.append("")