@testing-library/user-event
Version:
Fire events the same way the user does
32 lines (30 loc) • 546 B
JavaScript
const defaultKeyMap = [
{
name: 'MouseLeft',
pointerType: 'mouse',
button: 'primary'
},
{
name: 'MouseRight',
pointerType: 'mouse',
button: 'secondary'
},
{
name: 'MouseMiddle',
pointerType: 'mouse',
button: 'auxiliary'
},
{
name: 'TouchA',
pointerType: 'touch'
},
{
name: 'TouchB',
pointerType: 'touch'
},
{
name: 'TouchC',
pointerType: 'touch'
}
];
export { defaultKeyMap };