TextInputComp:
The textInput component.
group
Component Types
hasFocus: boolean
Enable the text input array to be modified by user input. Setting this to true is the same as calling focus(), and will clear focus on all other active textInput objects.
typedText: string
The "real" text that the user typed, without any escaping.
focus(): void
Focuses this text input so that it will receive input, and removes focus from all other text inputs.
onFocus(cb: ()=>void): KEventController
Event that runs when the text input gains focus.
onBlur(cb: ()=>void): KEventController
Event that runs when the text input loses focus.
onInput(cb: ()=>void): KEventController
Event that runs when the user types any character in the text input and causes its value to change. This runs *after* the display text is updated with the escaped version of the typed text, so in the event handler you can override the displayed text with another version (like if you want to add syntax highlighting or something). See also .
onChange(cb: ()=>void): KEventController
Runs immediately after onBlur if the value has changed while the text input has been focused.