react-code-input
react-code-input copied to clipboard
onKeyPress
I'm trying to find a way to submit a form on Enter key press in last digit input. Unfortunately cannot figure out how to achieve this because none of the following work: onKeyPress, onKeyUp, onKeyDown. Is there a solution for that?
Added KeyPress events #78
@mikegordo I achieved this by adding "type='submit'" to a button on the page, where the ReactCodeInput was located.
That way I could submit the value from the input both/either by clicking the button or/and pushing "Enter" key on my keyboard. The page is not rerendered in this case.
I hope it will help.