Jquery shift+click event


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. media_lightbox_links.each(function(i) {
  2. jQuery(this).bind('click', doOverlayOpen);
  3. // This function only happens if user hover element while holding shift-button down
  4. jQuery(this).bind('mouseover', function(e) {
  5. if (e.shiftKey) {
  6. //console.log("dobbelclick: " + jQuery(this).attr('rel'));
  7. doOverlayOpenId(this.hash);
  8. jQuery(jQuery(this).attr('rel')).trigger("click");
  9. }
  10. });
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.