Text input wrap

I am trying to get my Text input element to wrap but I don’t want to allow multi line input. In other words The text input should grow by wrapping to the next line as the user types an overflow but submits when return is pressed. Does anyone know how to do this. I have been trying all sorts of advances settings with wrap but no joy.

Thanks

The simplest solution is to make a multi-line field, and send it using a separate button