buoy.event
Class KeyPressedEvent
- WidgetEvent
public class KeyPressedEvent
This is an event corresponding to a key on the keyboard being pressed.
KeyPressedEvent
public KeyPressedEvent(Widget source,
long when,
int modifiers,
int keyCode) Create a KeyPressedEvent.
source - the Widget which generated this eventwhen - the time at which the event occurredmodifiers - describes the state of various keys and buttons at the time when the event occurred
(a sum of the constants defined by InputEvent)keyCode - specifies which key on the keyboard generated the event. This should be one of
the VK_ constants.
Written by Peter Eastman.