diff --git a/src/form/wizard.js b/src/form/wizard.js index 3f455d7..3c2fef2 100644 --- a/src/form/wizard.js +++ b/src/form/wizard.js @@ -229,6 +229,12 @@ export default function Wizard( props ) { setIsWizardOpen( false ); }; + const onKeyPress = ( event ) => { + if ( event.key === 'Enter' ) { + onInsert(); + } + } + return ( setFields( fields ) } + onKeyPress={ onKeyPress } />