]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #2646 - Do not override ctrl/cmd+click on Permalinks (#3073)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 15 May 2017 20:36:38 +0000 (22:36 +0200)
committerGitHub <noreply@github.com>
Mon, 15 May 2017 20:36:38 +0000 (22:36 +0200)
app/javascript/mastodon/components/permalink.js

index 531ece33f304fcbe2fda571644aba70e0386d6e8..08f18772869facd0e5dce0299e48270fa08a9a09 100644 (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);
     }