onCharInput(action: (ch: string)=>void): KEventController
Register an event that runs when user inputs text.
param
action- The function to run when the event is triggered.
// type into input
onCharInput((ch) => {
input.text += ch
})
returns
The event controller.
since
v2000.1
group
Input