Class KeyEvent

All Implemented Interfaces:
Serializable

public class KeyEvent extends InputEvent
Port of KeyEvent. Extends our InputEvent so the full modifier API (isShiftDown, etc.) is available.

The VK_* constant surface is copied verbatim from AWT — values are stable (since Java 1.1) and keeping them local means user code doesn't need a java.awt.event.KeyEvent import alongside ours. Because the values are AWT's, getKeyText(int), InputEvent.getModifiersExText(int) and isActionKey() all answer by asking AWT rather than by carrying a second copy of its tables.

See Also: