From 823532b08ba0fc664850181b6b079a911ed41c30 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 9 Oct 2016 13:46:44 +0200 Subject: [PATCH] ImageViewer now ignores pressed ctrl key --- wcfsetup/install/files/js/WCF.ImageViewer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index e342bf9b81..d97d3da4c1 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -53,6 +53,11 @@ WCF.ImageViewer = Class.extend({ * @param object event */ _click: function(event) { + // ignore clicks while ctrl key is being pressed + if (event.ctrlKey) { + return; + } + event.preventDefault(); event.stopPropagation(); // skip if element is in a popover -- 2.20.1