buoy.event
Class KeyTypedEvent
- WidgetEvent
public class KeyTypedEvent
This is an event corresponding to a Unicode character being generated by the user interacting with the
keyboard. The exact relationship between the keyboard interaction and the resulting KeyTypedEvents may
be complex. Several different key presses may contribute to a single KeyTypedEvent (such as holding down
the Shift key while typing a letter), or a single key press may generate multiple KeyTypedEvents (such
as holding down a key to activate autorepeat).
KeyTypedEvent
public KeyTypedEvent(Widget source,
long when,
int modifiers,
char keyChar)
Create a KeyTypedEvent.
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)keyChar
- the Unicode character generated by this event
Written by Peter Eastman.