File Editor
Directories:
.. (Back)
blocks
build
fonts
genericons
lib
social-logos
Files:
accessible-focus.js
blogging-prompts.php
class.jetpack-provision.php
crowdsignal-shortcode.js
crowdsignal-survey.js
deprecate.js
facebook-embed.js
gallery-settings.js
genericons.php
jetpack-admin.js
jetpack-deactivate-dialog.js
jetpack-modules.js
jetpack-modules.models.js
jetpack-modules.views.js
polldaddy-shortcode.js
social-logos.php
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