Posted By

gerhardsletten on 08/21/09


Tagged

event debug jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rygiel


Jquery shift+click event


 / Published in: jQuery
 

  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  

You need to login to post a comment.