previous up next index search
Previous: 10.19.2 Коды символов ASCII    UP: 10.19 Символьный набор HTML. Unicode
    Next: 10.19.4 Таблица соответствия клавиш для специальных символов

10.19.3 Коды клавиш

Семенов Ю.А. (ИТЭФ-МФТИ)
Yu. Semenov (ITEP-MIPT)

Коды комбинированных символов ALT-

Число клавиш на современных клавиатурах неуклонно растет. И программистам, которые пишут приложения, управляемые этими клавишами, нужно знать их коды. Ниже предлагается таблица с полным перечнем кодов (на сегодняшний день).

Симв.Десятич. параHex параСимв.Десятич. параHex пара
ALT-A(00,30)(0x00,0x1e)ALT-B(00,48)(0x00,0x30)
ALT-C (00,46) 0x00,0x2e)ALT-D (00,32) (0x00,0x20)
ALT-E(00,18)(0x00,0x12)ALT-F(00,33)(0x00,0x21)
ALT-G(00,34)(0x00,0x22)ALT-H(00,35)(0x00,0x23)
ALT-I(00,23)(0x00,0x17)ALT-J(00,36)(0x00,0x24)
ALT-K(00,37)(0x00,0x25)ALT-L(00,38)(0x00,0x26)
ALT-M(00,50)(0x00,0x32)ALT-N(00,49) (0x00,0x31)
ALT-O(00,24)(0x00,0x18)ALT-P(00,25) (0x00,0x19)
ALT-Q(00,16) (0x00,0x10)ALT-R(00,19)(0x00,0x13)
ALT-S(00,31)(0x00,0x1a)ALT-T (00,20)(0x00,0x14)
ALT-U(00,22)(0x00,0x16)ALT-V (00,47)(0x00,0x2f)
ALT-W(00,17)(0x00,0x11)ALT-X (00,45)(0x00,0x2d)
ALT-Y(00,21)(0x00,0x15)ALT-Z(00,44) (0x00,0x2c)
PgUp(00,73)(0x00,0x49)PgDn(00,81)(0x00,0x51)
Home (00,71)(0x00,0x47)End(00,79) (0x00,0x4f)
UpArrw (00,72)(0x00,0x48)DnArrw (00,80)(0x00,0x50)
LftArrw(00,75)(0x00,0x4b)RtArrw(00,77)(0x00,0x4d)
F1(00,59)(0x00,0x3b)F2(00,60)(0x00,0x3c)
F3(00,61)(0x00,0x3d)F4(00,62)(0x00,0x3e)
F5(00,63)(0x00,0x3f)F6(00,64)(0x00,0x40)
F7(00,65)(0x00,0x41)F8(00,66)(0x00,0x42)
F9 (00,67)(0x00,0x43)F10(00,68)(0x00,0x44)
F11(00,133)(0x00,0x85)F12(00,134)(0x00,0x86)
ALT-F1(00,104)(0x00,0x68)ALT-F2(00,105)(0x00,0x69)
ALT-F3(00,106)(0x00,0x6a)ALT-F4(00,107)(0x00,0x6b)
ALT-F5(00,108)(0x00,0x6c)ALT-F6(00,109)(0x00,0x6d)
ALT-F7(00,110)(0x00,0x6e)ALT-F8(00,111)(0x00,0x6f)
ALT-F9(00,112)(0x00,0x70)ALT-F10(00,113)(0x00,0x71)
ALT-F11(00,139)(0x00,0x8b)ALT-F12(00,140)(0x00,0x8c)

Таблица виртуальных кодов клавиш Windows (VirtualKeyCodes):

Константа WinApiHex значениеКлавиатурный или
мышиный эквивалент
VK_LBUTTON01Left mouse button
VK_RBUTTON02Right mouse button
VK_CANCEL03Control-break processing
VK_MBUTTON04Middle mouse button
(three-button mouse)
-05-07Undefined
VK_BACK08BACKSPACE key
VK_TAB09TAB key
-0A-0BUndefined
VK_CLEAR0CCLEAR key
VK_RETURN0DENTER key
-0E-0FUndefined
VK_SHIFT10SHIFT key
VK_CONTROL11CTRL key
VK_MENU12ALT key
VK_PAUSE13PAUSE key
VK_CAPITAL14CAPS LOCK key
-15-19Зарезервировано для систем Kanji
-1AUndefined
VK_ESCAPE1BESC key
-1C-1FЗарезервировано для систем Kanji
VK_SPACE20SPACEBAR
VK_PRIOR21PAGE UP key
VK_NEXT22PAGE DOWN key
VK_END23END key
VK_HOME24HOME key
VK_LEFT25LEFT ARROW key
VK_UP26UP ARROW key
VK_RIGHT27RIGHT ARROW key
VK_DOWN28DOW NARROW key
VK_SELECT29SELECT key
-2AOriginal equipment
manufacturer (OEM) specific
VK_EXECUTE2BEXECUTE key
VK_SNAPSHOT2CPRINT SCREEN key
for Windows3.0 and later
VK_INSERT2DINS key
VK_DELETE2EDEL key
VK_HELP2FHELP key
VK_0300 key
VK_1311 key
VK_2322 key
VK_3333 key
VK_4344 key
VK_5355 key
VK_6366 key
VK_7377 key
VK_8388 key
VK_9399 key
-3A-40Undefined
VK_A41A key
VK_B42B key
VK_C43C key
VK_D44D key
VK_E45E key
VK_F46F key
VK_G47G key
VK_H48H key
VK_I49I key
VK_J4AJ key
VK_K4BK key
VK_L4CL key
VK_M4DM key
VK_N4EN key
VK_O4FO key
VK_P50P key
VK_Q51Q key
VK_R52R key
VK_S53S key
VK_T54T key
VK_U55U key
VK_V56V key
VK_W57W key
VK_X58X key
VK_Y59Y key
VK_Z5AZ key
VK_LWIN5BLeft Windows key
(Microsoft Natural Keyboard)
VK_RWIN5CRight Windows key
(Microsoft Natural Keyboard)
VK_APPS5DApplications key
(Microsoft Natural Keyboard)
-5E-5FUndefined
VK_NUMPAD060Numeric keypad 0 key
VK_NUMPAD161Numeric keypad 1 key
VK_NUMPAD262Numeric keypad 2 key
VK_NUMPAD363Numeric keypad 3 key
VK_NUMPAD464Numeric keypad 4 key
VK_NUMPAD565Numeric keypad 5 key
VK_NUMPAD666Numeric keypad 6 key
VK_NUMPAD767Numeric keypad 7 key
VK_NUMPAD868Numeric keypad 8 key
VK_NUMPAD969Numeric keypad 9 key
VK_MULTIPLY6AMultiply key
VK_ADD6BAdd key
VK_SEPARATOR6CSeparator key
VK_SUBTRACT6DSubtract key
VK_DECIMAL6EDecimal key
VK_DIVIDE6FDivide key
VK_F170F1 key
VK_F271F2 key
VK_F372F3 key
VK_F473F4 key
VK_F574F5 key
VK_F675F6 key
VK_F776F7 key
VK_F877F8 key
VK_F978F9 key
VK_F1079F10 key
VK_F117AF11 key
VK_F127BF12 key
VK_F137CF13 key
VK_F147DF14 key
VK_F157EF15 key
VK_F167FF16 key
VK_F1780HF17 key
VK_F1881HF18 key
VK_F1982HF19 key
VK_F2083HF20 key
VK_F2184HF21 key
VK_F2285HF22 key
VK_F2386HF23 key
VK_F2487HF24 key
-88-8FUnassigned
VK_NUMLOCK90NUMLOCK key
VK_SCROLL91SCROLL LOCK key
-92-B9Unassigned
-BA-C0OEM specific
-C1-DAUnassigned
-DB-E4OEM specific
-E5Unassigned
-E6OEM specific
-E7-E8Unassigned
-E9-F5OEM specific
VK_ATTNF6Attn key
VK_CRSELF7CrSel key
VK_EXSELF8ExSel key
VK_EREOFF9Erase EOF key
VK_PLAYFAPlay key
VK_ZOOMFBZoom key
VK_NONAMEFCЗарезервировано на будущее
VK_PA1FDPA1 key
VK_OEM_CLEARFEClear key

Previous: 10.19.2 Коды символов ASCII    UP: 10.19 Символьный набор HTML. Unicode
    Next: 10.19.4 Таблица соответствия клавиш для специальных символов