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

pull/1/head
ansuz 2020-07-15 12:05:36 -04:00
parent a1f25f2c73
commit 2b8540552c
1 changed files with 1 additions and 0 deletions

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) {