WordPress.org

Make WordPress Core

Changeset 29473


Ignore:
Timestamp:
08/12/2014 09:57:43 PM (5 years ago)
Author:
azaozz
Message:

Media modal: make sure the Close button is focused after attempting to close the onscreen keyboard on touch devices. Props celloexpressions, fixes #29166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r29471 r29473  
    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
     
    32573257                }
    32583258            }
     3259
     3260            $el.find( '.media-modal-close' ).focus();
    32593261
    32603262            return this.propagate('open');
Note: See TracChangeset for help on using the changeset viewer.