Package org.eclipse.draw2d
Class KeyEvent
java.lang.Object
java.util.EventObject
org.eclipse.draw2d.InputEvent
org.eclipse.draw2d.KeyEvent
- All Implemented Interfaces:
- Serializable
An event caused by the user interacting with the keyboard.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptioncharThe character that was pressed.intThe keycode.Fields inherited from class org.eclipse.draw2d.InputEventALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFTFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionKeyEvent(EventDispatcher dispatcher, IFigure source, KeyEvent ke) Constructs a new KeyEvent.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.InputEventconsume, getState, isConsumedMethods inherited from class java.util.EventObjectgetSource, toString
- 
Field Details- 
characterpublic char characterThe character that was pressed.- See Also:
 
- 
keycodepublic int keycodeThe keycode.- See Also:
 
 
- 
- 
Constructor Details- 
KeyEventConstructs a new KeyEvent.- Parameters:
- dispatcher- the event dispatcher
- source- the source of the event
- ke- an SWT key event used to supply the statemask, keycode and character
 
 
-