KeyStroke
Class KeyStroke
- java.lang.Object
-
- java.awt.AWTKeyStroke
-
- javax.swing.KeyStroke
- All Implemented Interfaces:
- Serializable
public class KeyStroke extends AWTKeyStroke
A KeyStroke represents a key action on the keyboard, or equivalent input device. KeyStrokes can correspond to only a press or release of a particular key, just as KEY_PRESSED and KEY_RELEASED KeyEvents do; alternately, they can correspond to typing a specific Java character, just as KEY_TYPED KeyEvents do. In all cases, KeyStrokes can specify modifiers (alt, shift, control, meta, altGraph