about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-05-15 22:36:38 +0200
committerGitHub <noreply@github.com>2017-05-15 22:36:38 +0200
commit191696ab303d83cabf802e804443968b3053d775 (patch)
tree86e03493a8b9c293837c6cbc723a21bd6b811325 /app
parentaf706583bde6efba4c03922d518e0af1d652d8c5 (diff)
Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/permalink.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/permalink.js b/app/javascript/mastodon/components/permalink.js
index 531ece33f..08f187728 100644
--- a/app/javascript/mastodon/components/permalink.js
+++ b/app/javascript/mastodon/components/permalink.js
@@ -15,7 +15,7 @@ class Permalink extends React.PureComponent {
   };
 
   handleClick = (e) => {
-    if (e.button === 0) {
+    if (e.button === 0 && !(e.ctrlKey || e.metaKey)) {
       e.preventDefault();
       this.context.router.push(this.props.to);
     }