Do not trigger expose view if one of the operator keys (e.g. Ctrl) are held, in order to be able to select entries

This commit is contained in:
Hadi Nategh 2015-04-09 07:59:55 +00:00
parent 6c0df44d2d
commit 58ea1e3773

View File

@ -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');
}
},