views:

12

answers:

0

Accodring to documentation of the the hotkeys plugin .This is how I use it

 $(document).bind('keydown', 'Ctrl+h', function(e){
 alert("stage closed");
 e.preventDefault();
 });
 $(document).bind('keydown', 'Ctrl+e', function(e){
 e.preventDefault();
 $(element).click();
 });

Problem: When I press Ctrl+e, the click event on the element will happen twice, which is not expected. it should happen once at a time.