Skip to content

Commit

Permalink
Play nice with desktop keyboard modifiers
Browse files Browse the repository at this point in the history
* Fixes Ctrl+click and others

Applies to OpenUserJS#904 and post fix for PR OpenUserJS#1062
  • Loading branch information
Martii committed Mar 31, 2017
1 parent a7ea4c6 commit 333014b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions views/includes/scripts/tableTrLinkScript.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
return;
}

// Check if desktop keyboard modifier(s) present
if (aEv.ctrlKey || aEv.shiftKey || aEv.altKey || aEv.metaKey) {
return;
}

// Stop propagation as soon as possible
aEv.stopPropagation();

Expand Down

0 comments on commit 333014b

Please sign in to comment.