ImageViewer now ignores pressed ctrl key
authorAlexander Ebert <ebert@woltlab.com>
Sun, 9 Oct 2016 11:46:44 +0000 (13:46 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 9 Oct 2016 11:46:44 +0000 (13:46 +0200)
wcfsetup/install/files/js/WCF.ImageViewer.js

index e342bf9b816b0642acd79f6766e19425d4b949ea..d97d3da4c18e47f208bc252accdb1ef2b036d85a 100644 (file)
@@ -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