We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687b948 commit b9eb972Copy full SHA for b9eb972
src/lib/index.jsx
@@ -214,7 +214,7 @@ class OtpInput extends Component<Props, State> {
214
} else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
215
e.preventDefault();
216
this.focusNextInput();
217
- } else if (e.keyCode === SPACEBAR || e.key === 'Space' ) {
+ } else if (e.keyCode === SPACEBAR || e.key === 'Space' || e.key === ' ' || e.key === 'Spacebar') {
218
219
}
220
};
0 commit comments