A skinnable text input handler.
Supports text selection, keyboard cursor navigation, as well as basic hotkeys:
Ctrl + Z,
Ctrl + Y for undo and redo and
Ctrl + A to select all text.
If set, TextInput will render provided color as a background to text interactive area.
canEdit:Bool = true
When disabled, user would not be able to edit the input text (selection is still available).
cursorBlinkTime:Float = 0.5
The blinking interval of the cursor in seconds.
cursorIndex:Int = -1
Current position of the input cursor. When TextInput is not focused value is -1.
Maximum input width.
Text.maxWidth does not cause a word-wrap, but also masks out contents that are outside the max width.
If not null, represents current text selection range.
Returns a String representing currently selected text area or
null if no text is selected.
Checks if TextInput is currently focused.
Sent when user modifies TextInput contents.