don't open the lightbox in code preview when you ctrl-click

This commit is contained in:
ansuz 2020-07-15 12:05:36 -04:00
parent a1f25f2c73
commit 2b8540552c

View File

@ -571,6 +571,7 @@ define([
var MutationObserver = window.MutationObserver;
var onPreview = function ($mt) {
return function () {
if (window.event.ctrlKey) { return; }
var mts = [];
// Get all previewable elements from the doc
$content.find('media-tag, pre[data-plugin]').each(function (i, el) {