// AC Keybinds Library for HTML/JavaScript // Maps AC key names to JavaScript key codes const KEY_1 = "1"; const KEY_2 = "2"; const KEY_3 = "3"; const KEY_4 = "4"; const KEY_5 = "5"; const KEY_6 = "6"; const KEY_7 = "7"; const KEY_8 = "8"; const KEY_9 = "9"; const KEY_0 = "0"; const KEY_MINUS = "-"; const KEY_EQUAL = "="; const KEY_BACKSPACE = "Backspace"; const KEY_BACKSLASH = "\\"; const KEY_TAB = "Tab"; const KEY_Q = "q"; const KEY_W = "w"; const KEY_E = "e"; const KEY_R = "r"; const KEY_T = "t"; const KEY_Y = "y"; const KEY_U = "u"; const KEY_I = "i"; const KEY_O = "o"; const KEY_P = "p"; const KEY_LBRACKET = "["; const KEY_RBRACKET = "]"; const KEY_CAPS = "CapsLock"; const KEY_A = "a"; const KEY_S = "s"; const KEY_D = "d"; const KEY_F = "f"; const KEY_G = "g"; const KEY_H = "h"; const KEY_J = "j"; const KEY_K = "k"; const KEY_L = "l"; const KEY_SEMICOLON = ";"; const KEY_APOSTROPHE = "'"; const KEY_ENTER = "Enter"; const KEY_SHIFT = "Shift"; const KEY_Z = "z"; const KEY_X = "x"; const KEY_C = "c"; const KEY_V = "v"; const KEY_B = "b"; const KEY_N = "n"; const KEY_M = "m"; const KEY_COMMA = ","; const KEY_PERIOD = "."; const KEY_SLASH = "/"; const KEY_CTRL = "Control"; const KEY_ALT = "Alt"; const KEY_SPACE = " "; const KEY_FN = "Meta"; const KEY_SUPER = "Meta"; const KEY_WINDOWS = "Meta"; const KEY_UP = "ArrowUp"; const KEY_DOWN = "ArrowDown"; const KEY_LEFT = "ArrowLeft"; const KEY_RIGHT = "ArrowRight";