the-forest/client/node_modules/@testing-library/user-event/dist/keyboard/specialCharMap.js

30 lines
782 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.specialCharMap = void 0;
/**
* @deprecated This list of strings with special meaning is no longer necessary
* as we've introduced a standardized way to describe any keystroke for `userEvent`.
* @see https://testing-library.com/docs/ecosystem-user-event#keyboardtext-options
*/
const specialCharMap = {
arrowLeft: '{arrowleft}',
arrowRight: '{arrowright}',
arrowDown: '{arrowdown}',
arrowUp: '{arrowup}',
enter: '{enter}',
escape: '{esc}',
delete: '{del}',
backspace: '{backspace}',
home: '{home}',
end: '{end}',
selectAll: '{selectall}',
space: '{space}',
whitespace: ' ',
pageUp: '{pageUp}',
pageDown: '{pageDown}'
};
exports.specialCharMap = specialCharMap;