diff --git a/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.js b/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.js index dbee866325..eb18c61f8b 100644 --- a/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.js +++ b/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.js @@ -95,11 +95,6 @@ } ); } - if ( skipLink ) { - // Focus the target of skip link after pressing Enter. - skipLink.addEventListener( 'keydown', focusTargetAfterEnter ); - } - if ( shortlink ) { shortlink.addEventListener( 'click', clickShortlink ); } @@ -173,35 +168,6 @@ } } - /** - * Focus the target of skip link after pressing Enter. - * - * @since 5.3.1 - * - * @param {Event} event The keydown event. - */ - function focusTargetAfterEnter( event ) { - var id, userAgent; - - if ( event.which !== 13 ) { - return; - } - - id = event.target.getAttribute( 'href' ); - userAgent = navigator.userAgent.toLowerCase(); - - if ( userAgent.indexOf( 'applewebkit' ) > -1 && id && id.charAt( 0 ) === '#' ) { - setTimeout( function() { - var target = document.getElementById( id.replace( '#', '' ) ); - - if ( target ) { - target.setAttribute( 'tabIndex', '0' ); - target.focus(); - } - }, 100 ); - } - } - /** * Toggle hover class for mobile devices. * diff --git a/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.min.js b/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.min.js index 7beb6dfc6b..b01d377c94 100644 --- a/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.min.js +++ b/packages/playground/wordpress-builds/public/wp-nightly/wp-includes/js/admin-bar.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(l,u,d){function f(e){27===e.which&&(e=w(e.target,".menupop"))&&(e.querySelector(".menupop > .ab-item").focus(),y(e,"hover"))}function p(e){var t;13!==e.which||e.ctrlKey||e.shiftKey||w(e.target,".ab-sub-wrapper")||(t=w(e.target,".menupop"))&&(e.preventDefault(),(a(t,"hover")?y:g)(t,"hover"))}function h(e){var t;13===e.which&&(t=e.target.getAttribute("href"),-1 .ab-item").focus(),y(e,"hover"))}function p(e){var t;13!==e.which||e.ctrlKey||e.shiftKey||E(e.target,".ab-sub-wrapper")||(t=E(e.target,".menupop"))&&(e.preventDefault(),(a(t,"hover")?y:v)(t,"hover"))}function m(e,t){!E(t.target,".ab-sub-wrapper")&&(t.preventDefault(),t=E(t.target,".menupop"))&&(a(t,"hover")?y:(b(e),v))(t,"hover")}function f(e){var t,r=e.target.parentNode;if(t=r?r.querySelector(".shortlink-input"):t)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,v(r,"selected"),t.focus(),t.select(),!(t.onblur=function(){y(r,"selected")})}function h(){if("sessionStorage"in l)try{for(var e in sessionStorage)-1