tags:

views:

115

answers:

1

I have a TextBox on a Panel and I want to be notified when the value of the 'TextBox' changes.

I have tried the following event handlers:

  • ChangeHandler
  • ValueChangeHandler
  • KeyPresshandler

My problem is that the ValueChangeHandler and ChangeHandler only fire when the focus leaves the controls. The KeyPressHandler fires correctly, but before the TextBox itself has seen the event, which means that a call to getText() from my event handler sees a stale value.

Is there an event that would work exactly like KeyPressHandler but be fired after the TextBox has seen the event?

EDIT: this behaviour is seen in Chrome and IE8 on Windows XP

+5  A: 

Try the KeyUpHandler.

Chris Boesing
Damn, beat me to it ;)
Igor Klimer
I have a "friend" who searched for it for hours, too ;)
Chris Boesing