I\'m trying to simulate a keyDown event, specifically for Enter, keyCode: 13. I\'ve tried a number of different ways of doing this, but none of them ar
keyDown
keyCode: 13
This solution is working perfectly:
wrapper.find('#id1').simulate('keyDown', {key: 'ArrowRight'}); wrapper.find('#id2').simulate('keyDown', {key: 'Enter'})
wrapper.find('input').simulate('keydown');
It worked for me...