react-otp-input
react-otp-input copied to clipboard
call the props onKeyDown if exists
- Add onKeyDown functionality
This PR introduces the
onKeyDownprop and it get's executed on each key down and get's the event as a parameter.
Please pull this into the shipping code. I need to be able to handle the "Enter" key so that the OTP gets validated when the user hits the return key, but there is no way to cleanly capture this even without this.
We updated the file structure with v3 can you reopen the PR with latest changes if they’re still needed