Skip to:
Content

BuddyPress.org

Ticket #8270: 8270.a11y.patch

File 8270.a11y.patch, 589 bytes (added by imath, 6 years ago)
  • src/bp-core/admin/js/hello.js

    diff --git src/bp-core/admin/js/hello.js src/bp-core/admin/js/hello.js
    index f6d59aef1..9ab290ae9 100644
     
    105105                bpHelloOpenModal();
    106106        } );
    107107
     108        // Move the focus to the Modal's close button once the last Hello link was tabbed out.
     109        $( document ).on( 'keydown', function( event ) {
     110                if ( 9 === event.keyCode && 'support bp-tooltip' === $( event.target ).prop( 'classList' ).value ) {
     111                        event.preventDefault();
     112
     113                        $( '#TB_closeWindowButton' ).focus();
     114                }
     115        } );
     116
    108117}( jQuery, window.bp || {} ) );