Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on('click','a[data-id]',function(e){
- if(e.ctrlKey||expressionForCommandKey){
- ...
- }
- }
- $(document).on('click','a[data-id]',function(e){
- if(e.ctrlKey || e.metaKey){
- // command was used
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement