TextInputComp
:The textInput component.
group
Component Types
hasFocus
: booleanEnable 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
: stringThe "real" text that the user typed, without any escaping.
focus
(): voidFocuses this text input so that it will receive input, and removes focus from all other text inputs.
onFocus
(cb: () => void): KEventControllerEvent that runs when the text input gains focus.
onBlur
(cb: () => void): KEventControllerEvent that runs when the text input loses focus.
onInput
(cb: () => void): KEventControllerEvent 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): KEventControllerRuns immediately after onBlur if the value has changed while the text input has been focused.