Make WordPress Core

Ticket #30818: 30818.diff

File 30818.diff, 590 bytes (added by tywayne, 9 years ago)
  • wp-admin/js/customize-widgets.js

     
    685685                         * Handle selecting a sidebar to move to
    686686                         */
    687687                        this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( e ) {
    688                                 if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
     688                                if ( e.type === 'keypress' && ( e.which !== 13 && e.which !== 32 ) ) {
    689689                                        return;
    690690                                }
    691691                                e.preventDefault();