UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

21 lines (17 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var keys = {}; // Helpful for interaction/event tests. Use with simulate: // `nodes.input.simulate('keyDown', keyObjects.DOWN);` var keyObjects = {}; 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 }; } exports.default = keys; exports.keyObjects = keyObjects;