tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Articles > jQuery > How to capture Click event with Shift, Control and Alt Keys in jQuery

How to capture Click event with Shift, Control and Alt Keys in jQuery

Author: Venkata Sudhakar

The below example shows how to capture Click event with Shift, Control and Alt Keys in jQuery.

01$(selector).click(function(eventObj) {
02  if(eventObj.shiftKey) {
03    //Shift + Click event
04  }
05  if(eventObj.ctrlKey) {
06    //Ctrl + Click event
07  }
08  if(eventObj.altKey) {
09    //Alt + Click event
10  }
11});

 
  


  
bl  br