Make WordPress Core

Ticket #29166: 29166.diff

File 29166.diff, 599 bytes (added by celloexpressions, 11 years ago)

Set focus in media modal *after* blurring to hide onscreen keyboards.

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

     
    32433243                        // Disable page scrolling.
    32443244                        $( 'body' ).addClass( 'modal-open' );
    32453245
    3246                         $el.show().find( '.media-modal-close' ).focus();
     3246                        $el.show();
    32473247
    32483248                        // Try to close the onscreen keyboard
    32493249                        if ( 'ontouchend' in document ) {
     
    32573257                                }
    32583258                        }
    32593259
     3260                        $el.find( '.media-modal-close' ).focus();
     3261
    32603262                        return this.propagate('open');
    32613263                },
    32623264