onKeyPress

How to get the full value in a Text View when using onKeyPress ?
If i press one touch, the getValue() does not have the last character.

If i use onTimedKeyPress, i can use getValue() to read the full text from the Text view.
How can we do without using onTimedKeyPress ?

onChange does only work when focus has been lost.

Thanks

Hello,

The point is that onKeyPress fires before the value is updated.
So it’s better to use onTimedKeyPress event which fires after typing has been finished in the field
Also, I can admit that the onTimedKeyPress event is just the same onKeyPress event but with a 250-ms timeout.