1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-25 15:46:24 +09:00

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

This commit is contained in:
Eugen Rochko 2017-05-15 22:36:38 +02:00 committed by GitHub
parent af706583bd
commit 191696ab30

View File

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