Has anybody else noticed this problem with the IKeyListener?

The documentation says:

"A keyboard event is generated when a key is typed (pressed and released). 
The keyTyped() method in the listener object is then invoked, and the 
KeyEvent is passed to it."

However, I have a situation where if the information in a ULCTextField is 
not valid a dialog will pop up when enter is pressed to inform the user of 
the error.  The problem is that keyTyped() is getting called when I press 
enter, but before enter is released.  This wouldn't be a problem, except 
that the dialog then closes when the enter button is released.  The only 
way to really read the dialog is to press enter, hold it while I read, and 
then release it when I'm done to dispose of the dialog. The dialog itself 
is part of an API that I can't edit or extend.

I thought somebody else may have noticed this and hopefully found a way 
around it.

Any help would be appreciated, thanks. 



CONFIDENTIALITY NOTICE:  This message and any attachment(s) are solely for the 
use of the intended recipient(s) identified above and may contain information 
that is proprietary, privileged, or confidential. If you are not an intended 
recipient, you may not review, retransmit, or otherwise use this message or any 
attachment. If you have received this message in error, please immediately 
notify the sender by reply e-mail and delete this message.  

Reply via email to