diff --git a/assets/css/wc-setup.scss b/assets/css/wc-setup.scss index 4de0adf0146..bdf1b395f9d 100644 --- a/assets/css/wc-setup.scss +++ b/assets/css/wc-setup.scss @@ -670,6 +670,7 @@ body { position: relative; max-height: 1.5em; align-self: flex-start; + order: 3; } .wc-wizard-service-toggle { diff --git a/assets/js/admin/wc-setup.js b/assets/js/admin/wc-setup.js index 95c72dfcff1..7dc9bbefed9 100644 --- a/assets/js/admin/wc-setup.js +++ b/assets/js/admin/wc-setup.js @@ -67,6 +67,15 @@ jQuery( function( $ ) { } } ); + $( '.wc-wizard-services' ).on( 'keyup', function( e ) { + var code = e.keyCode || e.which, + $focused = $( document.activeElement ); + + if ( $focused.is( '.wc-wizard-service-toggle, .wc-wizard-service-enable' ) && ( 13 === code || 32 === code ) ) { + $focused.find( ':input' ).click(); + } + } ); + $( '.wc-wizard-services' ).on( 'click', '.wc-wizard-service-enable', function( e ) { var eventTarget = $( e.target ); diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index 190646c468f..7436b4ddd94 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -1630,6 +1630,18 @@ class WC_Admin_Setup_Wizard {
+