public interface NativeKeyListener
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(int keyCode,
int modifier)
Callback method called when a key event occurs.
|
void keyPressed(int keyCode, int modifier)
keyCode
- the (native) keyCodemodifier
- a modfier mask for combined key-strokes
(1: ctrl-key, 2: shift-key, 4: alt-key).