public class KeyFilterEvent
extends java.lang.Object
Constructor and Description |
---|
KeyFilterEvent(int keyCode,
boolean isControlPressed,
boolean isShiftPressed,
boolean isAltPressed,
int scanCode,
boolean extended,
int repeatCount) |
Modifier and Type | Method and Description |
---|---|
int |
getKeyCode()
Returns key code.
|
int |
getRepeatCount()
Specifies the repeat count for the current message.
|
int |
getScanCode()
Returns key scan code.
|
boolean |
isAltPressed()
Returns true if ALT key is pressed during key event.
|
boolean |
isControlPressed()
Returns true if control is pressed during key event.
|
boolean |
isExtended()
Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an
enhanced 101- or 102-key keyboard.
|
boolean |
isShiftPressed()
Returns true if shift is pressed during key event.
|
public KeyFilterEvent(int keyCode, boolean isControlPressed, boolean isShiftPressed, boolean isAltPressed, int scanCode, boolean extended, int repeatCount)
public int getKeyCode()
public boolean isControlPressed()
public boolean isShiftPressed()
public boolean isAltPressed()
public int getScanCode()
public boolean isExtended()
public int getRepeatCount()