[ Back | Previous | Next ]

KeyCode of the KeyEvent numbers

Package:
java.awt.event.*
Product:
JDK
Release:
1.1.x
Related Links:
ActionEvent
KeyEvent
MouseEvent
WindowEvent
Comment:
The KeyCodes are used in the KeyEvent class. But also in the MenuShortcut class. To have the right codes when implementing these shortcuts
the following list is in use:
VK_Z = 90
VK_Y = 89
VK_X = 88
VK_W = 87
VK_V = 86
VK_UP = 38
VK_UNDEFINED = 0
VK_U = 85
VK_TAB = 9
VK_T = 84
VK_SUBTRACT = 109
VK_SPACE = 32
VK_SLASH = 47
VK_SHIFT = 16
VK_SEPARATER = 108
VK_SEMICOLON = 59
VK_SCROLL_LOCK = 145
VK_S = 83
VK_RIGHT = 39
VK_R = 82
VK_QUOTE = 222
VK_Q = 81
VK_PRINTSCREEN = 154
VK_PERIOD = 46
VK_PAUSE = 19
VK_PAGE_UP = 33
VK_PAGE_DOWN = 34
VK_P = 80
VK_OPEN_BRACKET = 91
VK_O = 79
VK_NUM_LOCK = 144
VK_NUMPAD9 = 105
VK_NUMPAD8 = 104
VK_NUMPAD7 = 103
VK_NUMPAD6 = 102
VK_NUMPAD5 = 101
VK_NUMPAD4 = 100
VK_NUMPAD3 = 99
VK_NUMPAD2 = 98
VK_NUMPAD1 = 97
VK_NUMPAD0 = 96
VK_NONCONVERT = 29
VK_N = 78
VK_MULTIPLY = 106
VK_MODECHANGE = 31
VK_META = 157
VK_M = 77
VK_LEFT = 37
VK_L = 76
VK_KANJI = 25
VK_KANA = 21
VK_K = 75
VK_J = 74
VK_INSERT = 155
VK_I = 73
VK_HOME = 36
VK_HELP = 156
VK_H = 72
VK_G = 71
VK_FINAL = 24
VK_F9 = 120
VK_F8 = 119
VK_F7 = 118
VK_F6 = 117
VK_F5 = 116
VK_F4 = 115
VK_F3 = 114
VK_F2 = 113
VK_F12 = 123
VK_F11 = 122
VK_F10 = 121
VK_F1 = 112
VK_F = 70
VK_ESCAPE = 27
VK_EQUALS = 61
VK_ENTER = 10
VK_END = 35
VK_E = 69
VK_DOWN = 40
VK_DIVIDE = 111
VK_DELETE = 127
VK_DECIMAL = 110
VK_D = 68
VK_CONVERT = 28
VK_CONTROL = 17
VK_COMMA = 44
VK_CLOSE_BRACKET = 93
VK_CLEAR = 12
VK_CAPS_LOCK = 20
VK_CANCEL = 3
VK_C = 67
VK_BACK_SPACE = 8
VK_BACK_SLASH = 92
VK_BACK_QUOTE = 192
VK_B = 66
VK_ALT = 18
VK_ADD = 107
VK_ACCEPT = 30
VK_A = 65
VK_9 = 57
VK_8 = 56
VK_7 = 55
VK_6 = 54
VK_5 = 53
VK_4 = 52
VK_3 = 51
VK_2 = 50
VK_1 = 49
VK_0 = 48
KEY_TYPED = 400
KEY_RELEASED  = 402
KEY_PRESSED  = 401
KEY_LAST  = 402
KEY_FIRST  = 400
CHAR_UNDEFINED  = 0
1