Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
modifier keys - better protection. fixes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Aug 13, 2014
1 parent 518526a commit 29811d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tappy.js
Expand Up @@ -58,7 +58,8 @@
cancel = false;
}, 1000 );

if( e.ctrlKey || e.metaKey ){
// make sure no modifiers are present. thx http://www.jacklmoore.com/notes/click-events/
if( ( e.which && e.which > 1 ) || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey ){
return;
}

Expand Down

0 comments on commit 29811d0

Please sign in to comment.