This question already has an answer here:
Edits are marked in bold:
How do I make an
InputField that behaves just like the following HTML Textarea example.
<textarea rows="4" cols="50"> 1 2 3 4 </textarea>
Specific Features that are ideal:
- Text box has fixed height with scrollbar (The scrollbar must shrink to content size)
- Ctrl+a selects all content
- Enter key works correctly (The InputField auto scrolls to bottom as user inserts new line)
- The text wrapping works appropriately
I looked through the docs unable to find an example that follows those specifications.
This question is quiet close, but I can't seem to keep the content autoscrolled when the user enters a new line and the text wrapping isn't working correctly.