Make WordPress Core

Ticket #28732: 28732.patch

File 28732.patch, 668 bytes (added by polevaultweb, 10 years ago)
  • src/wp-admin/js/theme.js

     
    443443                // Set focused theme to current element
    444444                themes.focusedTheme = this.$el;
    445445
     446                // If a user ctrl, cmd or middle mouse clicks then open theme details
     447                // in new tab instead of showing the modal
     448                if ( event.metaKey || event.ctrlKey || 2 === event.which ) {
     449                        var href = themes.router.baseUrl( themes.router.themePath + self.model.cid );
     450                        window.open( href, '_blank' );
     451                        return;
     452                }
     453
    446454                this.trigger( 'theme:expand', self.model.cid );
    447455        },
    448456