首页 > 代码库 > Delphi 键盘码表

Delphi 键盘码表

  1 VK_LBUTTON = 1;   2 VK_RBUTTON = 2;   3 VK_CANCEL = 3;   4 VK_MBUTTON = 4; { NOT contiguous with L & RBUTTON }   5 VK_BACK = 8;   6 VK_TAB = 9;   7 VK_CLEAR = 12;   8 VK_RETURN = 13;   9 VK_SHIFT = $10;  10 VK_CONTROL = 17;  11 VK_MENU = 18;  12 VK_PAUSE = 19;  13 VK_CAPITAL = 20;  14 VK_KANA = 21;  15 VK_HANGUL = 21;  16 VK_JUNJA = 23;  17 VK_FINAL = 24;  18 VK_HANJA = 25;  19 VK_KANJI = 25;  20 VK_CONVERT = 28;  21 VK_NONCONVERT = 29;  22 VK_ACCEPT = 30;  23 VK_MODECHANGE = 31;  24 VK_ESCAPE = 27;  25 VK_SPACE = $20;  26 VK_PRIOR = 33;  27 VK_NEXT = 34;  28 VK_END = 35;  29 VK_HOME = 36;  30 VK_LEFT = 37;  31 VK_UP = 38;  32 VK_RIGHT = 39;  33 VK_DOWN = 40;  34 VK_SELECT = 41;  35 VK_PRINT = 42;  36 VK_EXECUTE = 43;  37 VK_SNAPSHOT = 44;  38 VK_INSERT = 45;  39 VK_DELETE = 46;  40 VK_HELP = 47;  41 { VK_0 thru VK_9 are the same as ASCII ‘0‘ thru ‘9‘ ($30 - $39) }  42 { VK_A thru VK_Z are the same as ASCII ‘A‘ thru ‘Z‘ ($41 - $5A) }  43 VK_LWIN = 91;  44 VK_RWIN = 92;  45 VK_APPS = 93;  46 VK_NUMPAD0 = 96;  47 VK_NUMPAD1 = 97;  48 VK_NUMPAD2 = 98;  49 VK_NUMPAD3 = 99;  50 VK_NUMPAD4 = 100;  51 VK_NUMPAD5 = 101;  52 VK_NUMPAD6 = 102;  53 VK_NUMPAD7 = 103;  54 VK_NUMPAD8 = 104; 55 VK_NUMPAD9 = 105;  56 VK_MULTIPLY = 106;  57 VK_ADD = 107;  58 VK_SEPARATOR = 108;  59 VK_SUBTRACT = 109;  60 VK_DECIMAL = 110;  61 VK_DIVIDE = 111;  62 VK_F1 = 112;  63 VK_F2 = 113;  64 VK_F3 = 114;  65 VK_F4 = 115;  66 VK_F5 = 116;  67 VK_F6 = 117;  68 VK_F7 = 118;  69 VK_F8 = 119;  70 VK_F9 = 120;  71 VK_F10 = 121;  72 VK_F11 = 122;  73 VK_F12 = 123;  74 VK_F13 = 124;  75 VK_F14 = 125;  76 VK_F15 = 126;  77 VK_F16 = 127;  78 VK_F17 = 128;  79 VK_F18 = 129;  80 VK_F19 = 130;  81 VK_F20 = 131;  82 VK_F21 = 132;  83 VK_F22 = 133;  84 VK_F23 = 134;  85 VK_F24 = 135;  86 VK_NUMLOCK = 144;  87 VK_SCROLL = 145;  88 { VK_L & VK_R - left and right Alt, Ctrl and Shift virtual keys.  89 Used only as parameters to GetAsyncKeyState() and GetKeyState().  90 No other API or message will distinguish left and right keys in this way. }  91 VK_LSHIFT = 160;  92 VK_RSHIFT = 161;  93 VK_LCONTROL = 162;  94 VK_RCONTROL = 163;  95 VK_LMENU = 164;  96 VK_RMENU = 165;  97 VK_PROCESSKEY = 229;  98 VK_ATTN = 246;  99 VK_CRSEL = 247; 100 VK_EXSEL = 248; 101 VK_EREOF = 249; 102 VK_PLAY = 250; 103 VK_ZOOM = 251; 104 VK_NONAME = 252; 105 VK_PA1 = 253; 106 VK_OEM_CLEAR = 254;