diff --git a/frontend/lib/views/chat/chat_input_field.dart b/frontend/lib/views/chat/chat_input_field.dart index b46badd61833..650e0eff792c 100644 --- a/frontend/lib/views/chat/chat_input_field.dart +++ b/frontend/lib/views/chat/chat_input_field.dart @@ -116,6 +116,12 @@ class _ChatInputFieldState extends State { child: TextField( controller: _controller, focusNode: _focusNode, + // Enable enter key stroke to send the message + // Untested but submitted at Pwuts recommendation + onSubmitted: () { + widget.onSendPressed(_controller.text); + _controller.clear(); + }, // Allowing the TextField to expand vertically and accommodate multiple lines maxLines: null, decoration: InputDecoration(