Setting the TextChangeEventMode
to EAGER
would result to trigger the event after each key is pressed. That seems often a bit too fast and too much overhead.
A TextChangeEvent is triggered when there is a pause in editing the text. The length of the pause can be modified with setInputEventTimeout().
Try to set an appropriate InputEventTimeout
.
Hint:
If a ValueChangeEvent would occur before the timeout period, a TextChangeEvent is triggered before it, on the condition that the text content has changed since the previous TextChangeEvent.