Edits are marked in bold:
How do I make an
InputField that behaves just like the following HTML Textarea example.
Specific Features that are ideal:
- Text box, unless manually resized, has fixed height with scrollbar (The scrollbar must shrink to content size)
- Ctrl+A selects all content
Enter key works correctly e.g:
The InputField auto scrolls to bottom as user inserts new line
When a new line is entered somewhere next to an existing new line inside the string, the coursor should follow correctly (now it leaves an empty line unless we use LeftArrow)
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.
Also related: How to anchor a Pane's scroll position to the bottom?