Make WordPress Core

Ticket #28969: 28969.diff

File 28969.diff, 474 bytes (added by adamsilverstein, 10 years ago)

prevent close from always gaining focus

  • src/wp-includes/js/media-grid.js

     
    463463
    464464                                this.modal.on( 'open', function () {
    465465                                        $( 'body' ).on( 'keydown.media-modal', _.bind( self.keyEvent, self ) );
     466                                        $( '.media-modal-close' ).blur();
    466467                                } );
    467468
    468469                                // Completely destroy the modal DOM element when closing it.