File Editor
Directories:
.. (Back)
blocks
build
fonts
genericons
lib
social-logos
Files:
accessible-focus.js
class.jetpack-provision.php
connect-button.js
crowdsignal-shortcode.js
crowdsignal-survey.js
facebook-embed.js
footer.php
gallery-settings.js
genericons.php
header.php
idc-notice.js
jetpack-admin.js
jetpack-connection-banner.js
jetpack-deactivate-dialog.js
jetpack-jitm.js
jetpack-modules.js
jetpack-modules.models.js
jetpack-modules.views.js
jetpack-server-sandbox.php
jetpack-strings.php
jetpack-wizard-banner.js
jquery.jetpack-resize.js
jquery.spin.js
polldaddy-shortcode.js
postmessage.js
social-logos.php
spin.js
twitter-timeline.js
Create New File
Create
Edit File: accessible-focus.js
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' ); } );
Save Changes
Rename File
Rename