WordPress.org

Make WordPress Core

Ticket #31810: 31810.patch

File 31810.patch, 471 bytes (added by afercia, 6 years ago)
  • src/wp-admin/js/theme.js

     
    11211121                        event.target.value = '';
    11221122                }
    11231123
    1124                 // Lose input focus when pressing enter
    1125                 if ( event.which === 13 ) {
    1126                         this.$el.trigger( 'blur' );
    1127                 }
    1128 
    11291124                this.collection.doSearch( event.target.value );
    11301125
    11311126                // if search is initiated and key is not return