diff --git a/smsapp/qml/ConversationDisplay.qml b/smsapp/qml/ConversationDisplay.qml index c89959671..1ef2fe356 100644 --- a/smsapp/qml/ConversationDisplay.qml +++ b/smsapp/qml/ConversationDisplay.qml @@ -54,13 +54,16 @@ Kirigami.ScrollablePage id: message Layout.fillWidth: true placeholderText: i18n("Say hi...") - } - Button { - text: "Send" - onClicked: { + onAccepted: { console.log("sending sms", page.phoneNumber) page.telephony.sendSms(page.phoneNumber, message.text) } } + Button { + text: "Send" + onClicked: { + message.accepted() + } + } } }