JSON-format keyboard encoding table, json encoding table
A json-format keyboard encoding table is prepared. You are welcome to reprint it, but please indicate the source. Thank you!
{VK_BACK: 8, // return key VK_TAB: 9, // TAB key VK_RETURN: 13, // return key VK_SHIFT: 16, // Shift key VK_CONTROL: 17, // Ctrl key VK_MENU: 18, // Alt key VK_PAUSE: 19, // Pause Break Key VK_CAPITAL: 20, // Caps Lock key VK_SPACE: 32, // Space key VK_PRIOR: 33, // Page Up VK_NEXT: 34, // Page Down VK_END: 35, // End key VK_HOME: 36, // Home Key VK_LEFT: 37, // direction key: direction VK_UP: 38, // direction key: Direction VK_RIGHT: 39, // direction key: → VK_DOWN: 40, // direction key: Direction VK_INSERT: 45, // Insert key VK_DELETE: 46, // Delete key // alphabet VK_A: 65, VK_ B: 66, VK_C: 67, VK_D: 68, VK_E: 69, VK_F: 70, VK_G: 71, VK_H: 72, VK_ I: 73, VK_J: 74, VK_K: 75, VK_L: 76, VK_M: 77, VK_N: 78, VK_O: 79, VK_P: 80, VK_Q: 81, VK_R: 82, VK_S: 83, VK_T: 84, VK_U: 85, VK_V: 86, VK_W: 87, VK_X: 88, VK_Y: 89, VK_Z: 90, VK_LWIN: 91, // left logo key VK_RWIN: 92, // right logo key VK_APPS: 93, // right-click the shortcut key VK_NUMPAD0: 96, // keypad 0 VK_NUMPAD0: 97, // keypad 1 VK_NUMPAD0: 98, // keypad 2 VK_NUMPAD0: 99, // keypad 3 VK_NUMPAD0: 100, // keypad 4 VK_NUMPAD0: 101, // keypad 5 VK_NUMPAD0: 102, // keypad 6 VK_NUMPAD0: 103, // keypad 7 VK_NUMPAD0: 104, // keypad 8 VK_NUMPAD0: 105, // keypad 9 VK_DECIMAL: 110, // keypad. VK_MULTIPLY: 106, // keypad * VK_MULTIPLY: 107, // keypad + VK_SUBTRACT: 109, // keypad-VK_DIVIDE: 111, // keypad/VK_F1: 112, // F1 key VK_F2: 113, // F2 key VK_F3: 114, // F3 key VK_F4: 115, // F4 key VK_F5: 116, // F5 key VK_F6: 117, // F6 key VK_F7: 118, // F7 key VK_F8: 119, // F8 key VK_F9: 120, // F9 key VK_F10: 121, // F10 key VK_F11: 122, // F11 key VK_F12: 123, // F12 key VK_NUMLOCK: 144, // Num Lock key VK_SCROLL: 145, // Scroll Lock key}