-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
KeyCode.KeyType
Integer mask for KeyCode type.
-
Enum Constant Summary
Enum Constants Enum Constant Description UNDEFINED
This value is used to indicate that the keyCode is unknown. Key typed events do not have a keyCode value this value is used instead.
DOWN
Constant for the non-numpad down arrow key.
RIGHT
Constant for the non-numpad right arrow key.
UP
Constant for the non-numpad up arrow key.
LEFT
Constant for the non-numpad left arrow key.
PAGE_DOWN
Constant for the Page Down key.
PAGE_UP
Constant for the Page Up key.
END
Constant for the End key.
HOME_POS1
Constant for the Home / Pos1 key.
DELETE
Constant for the Delete key.
INSERT
Constant for the Insert key.
PAUSE
Constant for the Pause key.
SCROLL_LOCK
Constant for the Scroll Lock key.
PRINT_SCREEN
Constant for the Print Screen key.
F12
Constant for the F12 function key.
F11
Constant for the F11 function key.
F10
Constant for the F10 function key.
F9
Constant for the F9 function key.
F8
Constant for the F8 function key.
F7
Constant for the F7 function key.
F6
Constant for the F6 function key.
F5
Constant for the F5 function key.
F4
Constant for the F4 function key.
F3
Constant for the F3 function key.
F2
Constant for the F2 function key.
F1
Constant for the F1 function key.
ESCAPE
Constant for the Esc key.
ENTER
Constant for the Enter key.
DECIMAL
Constant for the Numpad , key.
ADD
Constant for the Numpad + key.
SUBTRACT
Constant for the Numpad - key.
MULTIPLY
Constant for the **Numpad *** key.
DIVIDE
Constant for the **Numpad / ** key.
NUM_LOCK
Constant for the Num Lock key.
NUMPAD9
Constant for the Numpad 9 key.
NUMPAD8
Constant for the Numpad 8 key.
NUMPAD7
Constant for the Numpad 7 key.
NUMPAD6
Constant for the Numpad 6 key.
NUMPAD5
Constant for the Numpad 5 key.
NUMPAD4
Constant for the Numpad 4 key.
NUMPAD3
Constant for the Numpad 3 key.
NUMPAD2
Constant for the Numpad 2 key.
NUMPAD1
Constant for the Numpad 1 key.
NUMPAD0
Constant for the Numpad 0 key.
GREATER
Constant for the > key.
LESS
Constant for the < key.
NUMBER_SIGN
Constant for the # key.
TILDE
Constant for the ~ key.
ASTERISK
Constant for the ***** key.
PLUS
Constant for the + key.
UNDERSCORE
Constant for the _ key.
MINUS
Constant for the - key.
COLON
Constant for the : key.
PERIOD
Constant for the . key.
SEMICOLON
Constant for the ; key.
COMMA
Constant for the , key.
EURO_SIGN
Constant for the Euro currency sign € key.
AT
Constant for the @ key.
Z
Constant for the Z key.
Y
Constant for the Y key.
X
Constant for the X key.
W
Constant for the W key.
V
Constant for the V key.
U
Constant for the U key.
T
Constant for the T key.
S
Constant for the S key.
R
Constant for the R key.
Q
Constant for the Q key.
P
Constant for the P key.
O
Constant for the O key.
N
Constant for the N key.
M
Constant for the M key.
L
Constant for the L key.
K
Constant for the K key.
J
Constant for the J key.
I
Constant for the I key.
H
Constant for the H key.
G
Constant for the G key.
F
Constant for the F key.
E
Constant for the E key.
D
Constant for the D key.
C
Constant for the C key.
B
Constant for the B key.
A
Constant for the A key.
ACUTE
Constant for the ´ key.
GRAVE
Constant for the ` key.
BACK_SLASH
Constant for the **\** key.
EQUALS
Constant for the = key.
CLOSE_BRACKET
Constant for the ] key.
OPEN_BRACKET
Constant for the [ key.
CURLY_BRACE_RIGHT
Constant for the } key.
CURLY_BRACE_LEFT
Constant for the { key.
RIGHT_PARENTHESIS
Constant for the ) key.
LEFT_PARENTHESIS
Constant for the ( key.
SLASH
Constant for the forward slash ** / ** key.
AMPERSAND
Constant for the & key.
DOLLAR
Constant for the $ key.
DOUBLE_QUOTE
Constant for the " key.
EXCLAMATION_MARK
Constant for the ! key.
CIRCUMFLEX
Constant for the ^ key.
DIGIT0
Constant for the 0 key.
DIGIT9
Constant for the 9 key.
DIGIT8
Constant for the 8 key.
DIGIT7
Constant for the 7 key.
DIGIT6
Constant for the 6 key.
DIGIT5
Constant for the 5 key.
DIGIT4
Constant for the 4 key.
DIGIT3
Constant for the 3 key.
DIGIT2
Constant for the 2 key.
DIGIT1
Constant for the 1 key.
TAB
Constant for the Tab key.
BACK_SPACE
Constant for the Backspace key.
SPACE
Constant for the Space key.
CONTEXT_MENU
Constant for the Microsoft Windows Context Menu key.
WINDOWS
Constant for the Microsoft Windows Win key. It is used for both the left and right version of the key.
CAPS
Constant for the Caps Lock key.
ALT_GRAPH
Constant for the AltGr key.
ALT
Constant for the Alt key.
CONTROL
Constant for the Ctrl key.
SHIFT
Constant for the Shift key.
-
Method Summary
Modifier and Type Method Description String
toString()
Returns a string representation of the key. final Boolean
isModifier()
Returns true
if key was a modifier like Shift or Ctrl etc.final Boolean
isLetter()
Returns true
if key was a letter key A-Z,false
otherwise.final Boolean
isDigit()
Returns true
if key was digit key 1-9 from key- or numpad,false
otherwise.final Boolean
isOnNumpad()
Returns true
if key was on numpad like numpad numbers or +,-,/,* etc.final Boolean
isArrow()
Returns true
if key was an arrow key,false
otherwise.final Boolean
isNavigation()
Returns true
if key was a navigation key like arrows and page up / down,false
otherwise.final Boolean
isWhitespace()
Returns true
if key was a whitespace key like space, tab etc.final Boolean
isFunction()
Returns true
if key was a function key F1, F2, etc.final String
getString()
final String
getName()
final Integer
getOrdinal()
-
-
Method Detail
-
isModifier
final Boolean isModifier()
Returns
true
if key was a modifier like Shift or Ctrl etc.,false
otherwise.
-
isDigit
final Boolean isDigit()
Returns
true
if key was digit key 1-9 from key- or numpad,false
otherwise.
-
isOnNumpad
final Boolean isOnNumpad()
Returns
true
if key was on numpad like numpad numbers or +,-,/,* etc.,false
otherwise.
-
isNavigation
final Boolean isNavigation()
Returns
true
if key was a navigation key like arrows and page up / down,false
otherwise.
-
isWhitespace
final Boolean isWhitespace()
Returns
true
if key was a whitespace key like space, tab etc.,false
otherwise.
-
isFunction
final Boolean isFunction()
Returns
true
if key was a function key F1, F2, etc.,false
otherwise.
-
getOrdinal
final Integer getOrdinal()
-
-
-
-