public class KeyEvent extends InputEvent
Modifier and Type | Field and Description |
---|---|
char |
character
The character that was pressed.
|
int |
keycode
The keycode.
|
ALT, ANY_BUTTON, BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, CONTROL, SHIFT
Constructor and Description |
---|
KeyEvent(EventDispatcher dispatcher,
IFigure source,
KeyEvent ke)
Constructs a new KeyEvent.
|
consume, getState, isConsumed
public char character
KeyEvent.character
public int keycode
KeyEvent.keyCode
public KeyEvent(EventDispatcher dispatcher, IFigure source, KeyEvent ke)
dispatcher
- the event dispatchersource
- the source of the eventke
- an SWT key event used to supply the statemask, keycode and
characterCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.