Skip to content

Commit

Permalink
Play nice with Mac desktop keyboard modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Martii committed Apr 4, 2017
1 parent 760d4fd commit 3a2ab50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/includes/scripts/tableTrLinkScript.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
aEv.stopPropagation();

// Redirect to the anchor href
if (aEv.ctrlKey && aEv.shiftKey) {
if ((aEv.ctrlKey || aEv.metaKey) && aEv.shiftKey) {
window.open(url, '_blank').focus();
return;
}

if (aEv.ctrlKey) {
if (aEv.ctrlKey || aEv.metaKey) {
window.open(url, '_blank').blur();
return;
}
Expand Down

0 comments on commit 3a2ab50

Please sign in to comment.