From 58ea1e3773cd8945277d1b93d368076401a05beb Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 9 Apr 2015 07:59:55 +0000 Subject: [PATCH] Do not trigger expose view if one of the operator keys (e.g. Ctrl) are held, in order to be able to select entries --- etemplate/js/expose.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index d5eafecdcf..5c94f4bbc4 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -394,7 +394,8 @@ function expose (widget) if (typeof this.options.expose_view != 'undefined' && this.options.expose_view ) { jQuery(this.node).on('click', function(event){ - self._init_blueimp_gallery(event, _value); + // Do not trigger expose view if one of the operator keys are held + if (!event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey) self._init_blueimp_gallery(event, _value); }).addClass('et2_clickable'); } },