From 191696ab303d83cabf802e804443968b3053d775 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 15 May 2017 22:36:38 +0200 Subject: [PATCH] Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073) --- app/javascript/mastodon/components/permalink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/permalink.js b/app/javascript/mastodon/components/permalink.js index 531ece33f3..08f1877286 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); }