UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

17 lines (14 loc) 485 B
var keys = {}; // Helpful for interaction/event tests. Use with simulate: // `nodes.input.simulate('keyDown', keyObjects.DOWN);` var keyObjects = {}; // eslint-disable-next-line fp/no-loops for (var i = 65; i <= 122; i += 1) { keys[String.fromCharCode(i)] = i; keyObjects["".concat(String.fromCharCode(i))] = { key: "".concat(String.fromCharCode(i)), keyCode: i, which: i }; } export default keys; export { keyObjects }; //# sourceMappingURL=letter-key-code.js.map