UNPKG

@uifabric/utilities

Version:

Fluent UI React utilities for building components.

110 lines 1.84 kB
/** * Simulated enum for keycodes. These will get inlined by uglify when used much like an enum * * @public * {@docCategory KeyCodes} */ export var KeyCodes = { backspace: 8, tab: 9, enter: 13, shift: 16, ctrl: 17, alt: 18, pauseBreak: 19, capslock: 20, escape: 27, space: 32, pageUp: 33, pageDown: 34, end: 35, home: 36, left: 37, up: 38, right: 39, down: 40, insert: 45, del: 46, zero: 48, one: 49, two: 50, three: 51, four: 52, five: 53, six: 54, seven: 55, eight: 56, nine: 57, a: 65, b: 66, c: 67, d: 68, e: 69, f: 70, g: 71, h: 72, i: 73, j: 74, k: 75, l: 76, m: 77, n: 78, o: 79, p: 80, q: 81, r: 82, s: 83, t: 84, u: 85, v: 86, w: 87, x: 88, y: 89, z: 90, leftWindow: 91, rightWindow: 92, select: 93, /* eslint-disable @typescript-eslint/naming-convention */ zero_numpad: 96, one_numpad: 97, two_numpad: 98, three_numpad: 99, four_numpad: 100, five_numpad: 101, six_numpad: 102, seven_numpad: 103, eight_numpad: 104, nine_numpad: 105, /* eslint-enable @typescript-eslint/naming-convention */ multiply: 106, add: 107, subtract: 109, decimalPoint: 110, divide: 111, f1: 112, f2: 113, f3: 114, f4: 115, f5: 116, f6: 117, f7: 118, f8: 119, f9: 120, f10: 121, f11: 122, f12: 123, numlock: 144, scrollLock: 145, semicolon: 186, equalSign: 187, comma: 188, dash: 189, period: 190, forwardSlash: 191, graveAccent: 192, openBracket: 219, backSlash: 220, closeBracket: 221, singleQuote: 222, }; //# sourceMappingURL=KeyCodes.js.map