diff --git a/bluetoothsppchat/assets/SPPChat.qml b/bluetoothsppchat/assets/SPPChat.qml index c23a9f13..3c5efe9f 100644 --- a/bluetoothsppchat/assets/SPPChat.qml +++ b/bluetoothsppchat/assets/SPPChat.qml @@ -71,6 +71,13 @@ Page { inputMode: TextAreaInputMode.Chat input { submitKey: SubmitKey.Send + + onSubmitted: { + if (text.length > 0) { + _btController.chatManager.sendSPPMessage(text); + textInput.text = "" + } + } onTextChanged: {