in src/rules/click-events-have-key-events.js [15:25]
test(tagName, props) {
const hidden = hiddenFromAT(props);
const onClick = listensTo(props, 'onClick');
const onKeyDown = listensTo(props, 'onKeyDown');
const onKeyUp = listensTo(props, 'onKeyUp');
const onKeyPress = listensTo(props, 'onKeyPress');
// rule passes when element is hidden,
// has onClick and has an onKeyDown, onKeyUp or onKeyPress prop
return hidden || !onClick || onKeyDown || onKeyUp || onKeyPress;
}