diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2017-12-12 20:29:44 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-12-12 20:29:55 -0500 |
commit | 73ce9c10188ce4f5014c97ad4c0f8c9f69410113 (patch) | |
tree | ac0b7b2f7cb14a145e2308d705033f89cebc736d /plugins/jetpack/_inc/accessible-focus.js | |
parent | Update wordpress-mobile-pack 3.2 (diff) | |
download | blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.gz blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.bz2 blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.zip |
Update jetpack 5.6
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/_inc/accessible-focus.js')
-rw-r--r-- | plugins/jetpack/_inc/accessible-focus.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/jetpack/_inc/accessible-focus.js b/plugins/jetpack/_inc/accessible-focus.js deleted file mode 100644 index 44608c2b..00000000 --- a/plugins/jetpack/_inc/accessible-focus.js +++ /dev/null @@ -1,19 +0,0 @@ -var keyboardNavigation = false, - keyboardNavigationKeycodes = [ 9, 32, 37, 38, 39, 40 ]; // keyCodes for tab, space, left, up, right, down respectively - -document.addEventListener( 'keydown', function( event ) { - if ( keyboardNavigation ) { - return; - } - if ( keyboardNavigationKeycodes.indexOf( event.keyCode ) !== -1 ) { - keyboardNavigation = true; - document.documentElement.classList.add( 'accessible-focus' ); - } -} ); -document.addEventListener( 'mouseup', function() { - if ( ! keyboardNavigation ) { - return; - } - keyboardNavigation = false; - document.documentElement.classList.remove( 'accessible-focus' ); -} ); |