From: Eugen Rochko Date: Mon, 15 May 2017 20:36:38 +0000 (+0200) Subject: Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=191696ab303d83cabf802e804443968b3053d775;p=mastodon.git Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073) --- 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); }