Assigns a delegate to the keyPress event.
public final void addOnKeyPress( KeyPressEventHandler value )
value
The KeyPressEventHandler delegate to be notified when the event occurs.
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 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