Skip to content

Commit

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

Applies to #904 and post fix for PR #1062

Auto-merge
  • Loading branch information
Martii authored Mar 31, 2017
1 parent a7ea4c6 commit 03edcc3
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 03edcc3

Please sign in to comment.