From 2b8540552cbe72f3dab90a24c02c55180ca36d79 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 15 Jul 2020 12:05:36 -0400 Subject: [PATCH] don't open the lightbox in code preview when you ctrl-click --- www/common/diffMarked.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 1433a2381..6062b1d63 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -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) {