Package org.eclipse.swt.events
Class KeyAdapter
java.lang.Object
org.eclipse.swt.events.KeyAdapter
- All Implemented Interfaces:
- KeyListener
This adapter class provides default implementations for the
 methods described by the 
KeyListener interface.
 
 Classes that wish to deal with KeyEvents can
 extend this class and override only the methods which they are
 interested in.
 
- Since:
- 1.2
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSent when a key is pressed on the system keyboard.voidSent when a key is released on the system keyboard.
- 
Constructor Details- 
KeyAdapterpublic KeyAdapter()
 
- 
- 
Method Details- 
keyPressedSent when a key is pressed on the system keyboard. The default behavior is to do nothing.- Specified by:
- keyPressedin interface- KeyListener
- Parameters:
- e- an event containing information about the key press
 
- 
keyReleasedSent when a key is released on the system keyboard. The default behavior is to do nothing.- Specified by:
- keyReleasedin interface- KeyListener
- Parameters:
- e- an event containing information about the key release
 
 
-