specialCharMap.js 782 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.specialCharMap = void 0;
  6. /**
  7. * @deprecated This list of strings with special meaning is no longer necessary
  8. * as we've introduced a standardized way to describe any keystroke for `userEvent`.
  9. * @see https://testing-library.com/docs/ecosystem-user-event#keyboardtext-options
  10. */
  11. const specialCharMap = {
  12. arrowLeft: '{arrowleft}',
  13. arrowRight: '{arrowright}',
  14. arrowDown: '{arrowdown}',
  15. arrowUp: '{arrowup}',
  16. enter: '{enter}',
  17. escape: '{esc}',
  18. delete: '{del}',
  19. backspace: '{backspace}',
  20. home: '{home}',
  21. end: '{end}',
  22. selectAll: '{selectall}',
  23. space: '{space}',
  24. whitespace: ' ',
  25. pageUp: '{pageUp}',
  26. pageDown: '{pageDown}'
  27. };
  28. exports.specialCharMap = specialCharMap;