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:
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);
}