logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 191696ab303d83cabf802e804443968b3053d775
parent: af706583bde6efba4c03922d518e0af1d652d8c5
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon, 15 May 2017 22:36:38 +0200

Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073)


Diffstat:

Mapp/javascript/mastodon/components/permalink.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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); }