Overview | Methods | Fields | This Package | All Packages
Assigns a delegate to the keyPress event.
Syntax
public final void addOnKeyPress( KeyPressEventHandler value )
Parameters
value
The KeyPressEventHandler delegate to be notified when the event occurs.
Remarks
Passing an event handler as a parameter to this method is equivalent to setting the keyPress event to that method in the Properties window. The keyPress event occurs when the the user composes a character by pressing keys on the keyboard. You can use the getKeyChar method of the KeyPressEvent object that is sent with this event to retrieve the character that was composed.
See Also removeOnKeyPress