How can I separate Enter and Shift+Enter behavior in a textfield?

Actions & Logic

Hi everyone,

I'm developing a chat web application using FlutterFlow.
I have implemented a multiline text field for user input with an "On Submit" action.
Now, Users will execute this action by pressing either "Enter" or "Shift + Enter".
However, I'd like to modify the functionality so that only "Enter" triggers the action, while "Shift + Enter" inserts a new line. Is there a way to achieve this in FlutterFlow?

Any suggestions or guidance would be greatly appreciated.

What have you tried so far?

Experimented with various "Submit Type" options

Did you check FlutterFlow's Documentation for this topic?
Yes
4
2 replies