public enum KeyCode extends Enum<KeyCode>
Enum Constant and Description |
---|
A
The letter A.
|
ACCEPT
Accept or Commit function key.
|
AGAIN
Again (Sun keyboard).
|
ALL_CANDIDATES
All Candidates function key.
|
ALPHANUMERIC
Alphanumeric function key.
|
ALT
Alt (left or right).
|
ALT_GRAPH
AltGraph function key.
|
AMPERSAND
Ampersand ('&').
|
ASTERISK
Asterisk ('*').
|
AT
At sign ('@').
|
B
The letter B.
|
BACK_QUOTE
Backquote ('`').
|
BACK_SLASH
Backslash ('\\').
|
BACK_SPACE
Backspace.
|
BEGIN
Begin key.
|
BRACELEFT
Left curly brace ('{').
|
BRACERIGHT
Right curly brace ('}').
|
C
The letter C.
|
CANCEL
Cancel.
|
CAPS_LOCK
Caps Lock.
|
CIRCUMFLEX
Caret ('^').
|
CLEAR
Clear.
|
CLOSE_BRACKET
Right bracket (']').
|
CODE_INPUT
Code Input function key.
|
COLON
Colon (':').
|
COMMA
Comma (',').
|
COMPOSE
Compose function key.
|
CONTEXT_MENU
Windows Context Menu key.
|
CONTROL
Control (left or right).
|
CONVERT
Convert function key.
|
COPY
Copy (Sun keyboard).
|
CUT
Cut (Sun keyboard).
|
D
The letter D.
|
DEAD_ABOVEDOT
TODO.
|
DEAD_ABOVERING
TODO.
|
DEAD_ACUTE
TODO.
|
DEAD_BREVE
TODO.
|
DEAD_CARON
TODO.
|
DEAD_CEDILLA
TODO.
|
DEAD_CIRCUMFLEX
TODO.
|
DEAD_DIAERESIS
TODO.
|
DEAD_DOUBLEACUTE
TODO.
|
DEAD_GRAVE
TODO.
|
DEAD_IOTA
TODO.
|
DEAD_MACRON
TODO.
|
DEAD_OGONEK
TODO.
|
DEAD_SEMIVOICED_SOUND
TODO.
|
DEAD_TILDE
TODO.
|
DEAD_VOICED_SOUND
TODO.
|
DELETE
Delete (non-numpad).
|
DOLLAR
Dollar sign ('$').
|
DOWN
Down arrow (non-numpad).
|
E
The letter E.
|
END
End.
|
ENTER
Enter (a.k.a.
|
EQUALS
Equals ('=').
|
ESCAPE
Escape.
|
EURO_SIGN
Euro sign.
|
EXCLAMATION_MARK
Bang ('!').
|
F
The letter F.
|
F1
F1.
|
F10
F10.
|
F11
F11.
|
F12
F12.
|
F13
F13.
|
F14
F14.
|
F15
F15.
|
F16
F16.
|
F17
F17.
|
F18
F18
|
F19
F19.
|
F2
F2.
|
F20
F20.
|
F21
F21.
|
F22
F22.
|
F23
F23.
|
F24
F24.
|
F3
F3.
|
F4
F4.
|
F5
F5.
|
F6
F6.
|
F7
F7.
|
F8
F8.
|
F9
F9.
|
FINAL |
FIND
Find (Sun keyboard).
|
FULL_WIDTH
Full-Width Characters function key.
|
G
The letter G.
|
GREATER
Greater than ('>').
|
H
The letter H.
|
HALF_WIDTH
Half-Width Characters function key.
|
HELP
Help.
|
HIRAGANA
Hiragana function key.
|
HOME
Home.
|
I
The letter I.
|
INPUT_METHOD_ON_OFF
Input method on/off key.
|
INSERT
Insert.
|
INVERTED_EXCLAMATION_MARK
Inverted bang.
|
J
The letter J.
|
JAPANESE_HIRAGANA
Japanese-Hiragana function key.
|
JAPANESE_KATAKANA
Japanese-Katakana function key.
|
JAPANESE_ROMAN
Japanese-Roman function key.
|
K
The letter K.
|
KANA |
KANA_LOCK
Locking Kana function key.
|
KANJI |
KATAKANA
Katakana function key.
|
KP_DOWN
Down arrow on numeric keypad.
|
KP_LEFT
Left arrow on numeric keypad.
|
KP_RIGHT
Right arrow on numeric keypad.
|
KP_UP
Up arrow on numeric keypad.
|
L
The letter L.
|
LEFT
Left arrow (non-numpad).
|
LEFT_PARENTHESIS
Left parenthesis ('(').
|
LESS
Less than ('<').
|
M
The letter M.
|
META
Meta.
|
MINUS
Minus ('-').
|
MODECHANGE |
N
The letter N.
|
NONCONVERT
Don't Convert function key.
|
NUM_LOCK
Num Lock.
|
NUM0
Zero ('0', non-numpad).
|
NUM1
One ('1', non-numpad).
|
NUM2
Two ('2', non-numpad).
|
NUM3
Three ('3', non-numpad).
|
NUM4
Four ('4', non-numpad).
|
NUM5
Five ('5', non-numpad).
|
NUM6
Six ('6', non-numpad).
|
NUM7
Seven ('7', non-numpad).
|
NUM8
Eight ('8', non-numpad).
|
NUM9
Nine ('9', non-numpad).
|
NUMBER_SIGN
Pound sign ('#').
|
NUMPAD_0
Zero ('0') on numeric keypad.
|
NUMPAD_1
One ('1') on numeric keypad.
|
NUMPAD_2
Two ('2') on numeric keypad.
|
NUMPAD_3
Three ('3') on numeric keypad.
|
NUMPAD_4
Four ('4') on numeric keypad.
|
NUMPAD_5
Five ('5') on numeric keypad.
|
NUMPAD_6
Six ('6') on numeric keypad.
|
NUMPAD_7
Seven ('7') on numeric keypad.
|
NUMPAD_8
Eight ('8') on numeric keypad.
|
NUMPAD_9
Nine ('9') on numeric keypad.
|
NUMPAD_ASTERISK
Asterisk ('*') on numeric keypad.
|
NUMPAD_MINUS
Minus ('-') on numeric keypad.
|
NUMPAD_PERIOD
Period ('.') on numeric keypad.
|
NUMPAD_PLUS
Plus ('+') on numeric keypad.
|
NUMPAD_SEPARATOR |
NUMPAD_SLASH
Slash ('/') on numeric keypad.
|
O
The letter O.
|
OPEN_BRACKET
Left bracket ('[').
|
P
The letter P.
|
PAGE_DOWN
Page Down.
|
PAGE_UP
Page Up.
|
PASTE
Paste (Sun keyboard).
|
PAUSE
Pause.
|
PERIOD
Period ('.').
|
PLUS
Plus ('+').
|
PREVIOUS_CANDIDATE
Previous Candidate function key.
|
PRINTSCREEN
Print Screen.
|
PROPS
Props (Sun keyboard).
|
Q
The letter Q.
|
QUOTE
Single quote ('\'').
|
QUOTEDBL
Double quote ('"').
|
R
The letter R.
|
RIGHT
Right arrow (non-numpad).
|
RIGHT_PARENTHESIS
Right parenthesis (')').
|
ROMAN_CHARACTERS
Roman Characters function key.
|
S
The letter S.
|
SCROLL_LOCK
Scroll Lock.
|
SEMICOLON
Semicolon (';').
|
SHIFT
Shift (left or right).
|
SLASH
Forward slash ('/').
|
SPACE
Space (' ').
|
STOP
Stop (Sun keyboard).
|
T
The letter T.
|
TAB
Tab.
|
U
The letter U.
|
UNDEFINED
Unknown code.
|
UNDERSCORE
Underscore ('_').
|
UNDO
Undo (Sun keyboard).
|
UP
Up arrow (non-numpad).
|
V
The letter V.
|
W
The letter W.
|
WINDOWS
Windows key (both left and right).
|
X
The letter X.
|
Y
The letter Y.
|
Z
The letter Z.
|
Modifier and Type | Method and Description |
---|---|
static KeyCode |
get(int code)
Gets the KeyCode corresponding to the given numeric code, or
UNDEFINED if no such code. |
static KeyCode |
get(String name)
Gets the KeyCode with the given name, or
UNDEFINED if no such
code. |
int |
getCode()
Gets the key's numeric code.
|
static KeyCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyCode ENTER
public static final KeyCode BACK_SPACE
public static final KeyCode TAB
public static final KeyCode CANCEL
public static final KeyCode CLEAR
public static final KeyCode SHIFT
public static final KeyCode CONTROL
public static final KeyCode ALT
public static final KeyCode PAUSE
public static final KeyCode CAPS_LOCK
public static final KeyCode ESCAPE
public static final KeyCode SPACE
public static final KeyCode PAGE_UP
public static final KeyCode PAGE_DOWN
public static final KeyCode END
public static final KeyCode HOME
public static final KeyCode LEFT
public static final KeyCode UP
public static final KeyCode RIGHT
public static final KeyCode DOWN
public static final KeyCode COMMA
public static final KeyCode MINUS
public static final KeyCode PERIOD
public static final KeyCode SLASH
public static final KeyCode NUM0
public static final KeyCode NUM1
public static final KeyCode NUM2
public static final KeyCode NUM3
public static final KeyCode NUM4
public static final KeyCode NUM5
public static final KeyCode NUM6
public static final KeyCode NUM7
public static final KeyCode NUM8
public static final KeyCode NUM9
public static final KeyCode SEMICOLON
public static final KeyCode EQUALS
public static final KeyCode A
public static final KeyCode B
public static final KeyCode C
public static final KeyCode D
public static final KeyCode E
public static final KeyCode F
public static final KeyCode G
public static final KeyCode H
public static final KeyCode I
public static final KeyCode J
public static final KeyCode K
public static final KeyCode L
public static final KeyCode M
public static final KeyCode N
public static final KeyCode O
public static final KeyCode P
public static final KeyCode Q
public static final KeyCode R
public static final KeyCode S
public static final KeyCode T
public static final KeyCode U
public static final KeyCode V
public static final KeyCode W
public static final KeyCode X
public static final KeyCode Y
public static final KeyCode Z
public static final KeyCode OPEN_BRACKET
public static final KeyCode BACK_SLASH
public static final KeyCode CLOSE_BRACKET
public static final KeyCode NUMPAD_0
public static final KeyCode NUMPAD_1
public static final KeyCode NUMPAD_2
public static final KeyCode NUMPAD_3
public static final KeyCode NUMPAD_4
public static final KeyCode NUMPAD_5
public static final KeyCode NUMPAD_6
public static final KeyCode NUMPAD_7
public static final KeyCode NUMPAD_8
public static final KeyCode NUMPAD_9
public static final KeyCode NUMPAD_ASTERISK
public static final KeyCode NUMPAD_PLUS
public static final KeyCode NUMPAD_SEPARATOR
public static final KeyCode NUMPAD_MINUS
public static final KeyCode NUMPAD_PERIOD
public static final KeyCode NUMPAD_SLASH
public static final KeyCode DELETE
public static final KeyCode NUM_LOCK
public static final KeyCode SCROLL_LOCK
public static final KeyCode F1
public static final KeyCode F2
public static final KeyCode F3
public static final KeyCode F4
public static final KeyCode F5
public static final KeyCode F6
public static final KeyCode F7
public static final KeyCode F8
public static final KeyCode F9
public static final KeyCode F10
public static final KeyCode F11
public static final KeyCode F12
public static final KeyCode F13
public static final KeyCode F14
public static final KeyCode F15
public static final KeyCode F16
public static final KeyCode F17
public static final KeyCode F18
public static final KeyCode F19
public static final KeyCode F20
public static final KeyCode F21
public static final KeyCode F22
public static final KeyCode F23
public static final KeyCode F24
public static final KeyCode PRINTSCREEN
public static final KeyCode INSERT
public static final KeyCode HELP
public static final KeyCode META
public static final KeyCode BACK_QUOTE
public static final KeyCode QUOTE
public static final KeyCode KP_UP
public static final KeyCode KP_DOWN
public static final KeyCode KP_LEFT
public static final KeyCode KP_RIGHT
public static final KeyCode DEAD_GRAVE
public static final KeyCode DEAD_ACUTE
public static final KeyCode DEAD_CIRCUMFLEX
public static final KeyCode DEAD_TILDE
public static final KeyCode DEAD_MACRON
public static final KeyCode DEAD_BREVE
public static final KeyCode DEAD_ABOVEDOT
public static final KeyCode DEAD_DIAERESIS
public static final KeyCode DEAD_ABOVERING
public static final KeyCode DEAD_DOUBLEACUTE
public static final KeyCode DEAD_CARON
public static final KeyCode DEAD_CEDILLA
public static final KeyCode DEAD_OGONEK
public static final KeyCode DEAD_IOTA
public static final KeyCode DEAD_VOICED_SOUND
public static final KeyCode DEAD_SEMIVOICED_SOUND
public static final KeyCode AMPERSAND
public static final KeyCode ASTERISK
public static final KeyCode QUOTEDBL
public static final KeyCode LESS
public static final KeyCode GREATER
public static final KeyCode BRACELEFT
public static final KeyCode BRACERIGHT
public static final KeyCode AT
public static final KeyCode COLON
public static final KeyCode CIRCUMFLEX
public static final KeyCode DOLLAR
public static final KeyCode EURO_SIGN
public static final KeyCode EXCLAMATION_MARK
public static final KeyCode INVERTED_EXCLAMATION_MARK
public static final KeyCode LEFT_PARENTHESIS
public static final KeyCode NUMBER_SIGN
public static final KeyCode PLUS
public static final KeyCode RIGHT_PARENTHESIS
public static final KeyCode UNDERSCORE
public static final KeyCode WINDOWS
public static final KeyCode CONTEXT_MENU
public static final KeyCode FINAL
public static final KeyCode CONVERT
public static final KeyCode NONCONVERT
public static final KeyCode ACCEPT
public static final KeyCode MODECHANGE
public static final KeyCode KANA
public static final KeyCode KANJI
public static final KeyCode ALPHANUMERIC
public static final KeyCode KATAKANA
public static final KeyCode HIRAGANA
public static final KeyCode FULL_WIDTH
public static final KeyCode HALF_WIDTH
public static final KeyCode ROMAN_CHARACTERS
public static final KeyCode ALL_CANDIDATES
public static final KeyCode PREVIOUS_CANDIDATE
public static final KeyCode CODE_INPUT
public static final KeyCode JAPANESE_KATAKANA
public static final KeyCode JAPANESE_HIRAGANA
public static final KeyCode JAPANESE_ROMAN
public static final KeyCode KANA_LOCK
public static final KeyCode INPUT_METHOD_ON_OFF
public static final KeyCode CUT
public static final KeyCode COPY
public static final KeyCode PASTE
public static final KeyCode UNDO
public static final KeyCode AGAIN
public static final KeyCode FIND
public static final KeyCode PROPS
public static final KeyCode STOP
public static final KeyCode COMPOSE
public static final KeyCode ALT_GRAPH
public static final KeyCode BEGIN
public static final KeyCode UNDEFINED
public static KeyCode[] values()
for (KeyCode c : KeyCode.values()) System.out.println(c);
public static KeyCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public static KeyCode get(int code)
UNDEFINED
if no such code.Copyright © 2015–2022 SciJava. All rights reserved.