Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.addOnKeyUp

Assigns a delegate to the keyUp event.

Syntax

public final void addOnKeyUp( KeyEventHandler value )

Parameters

value

The KeyEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the keyUp event to that method in the Properties window. The keyUp event occurs when the user releases a key while this control has the focus. You can retrieve the virtual key code for the key that was pressed using the getKeyCode method of the KeyEvent object that is sent with this event. The Key class contains constants that represent possible virtual key codes.

See Also   removeOnKeyUp