about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-10 18:00:30 +0200
committerThibG <thib@sitedethib.com>2018-08-11 15:29:08 +0200
commitacb3d5b7aa68efa9e7c009e04a2eafc9b651f4a5 (patch)
tree09154d027594616ddce5172bc374cf841cd55669 /app/javascript/flavours
parentd787bcdeb1570e4d8d67f326dadaf321a6854e06 (diff)
Don't prevent opening links in tabs with keyboard modifiers
Ctrl+click usually allows opening a link in a new tab. This
was prevented for hashtag or user links in toots.
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/components/status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js
index 169cd3963..da1f74e6d 100644
--- a/app/javascript/flavours/glitch/components/status.js
+++ b/app/javascript/flavours/glitch/components/status.js
@@ -241,7 +241,7 @@ export default class Status extends ImmutablePureComponent {
         status.getIn(['reblog', 'id'], status.get('id'))
       }`;
     }
-    if (e.button === 0) {
+    if (e.button === 0 && !(e.ctrlKey || e.altKey || e.metaKey)) {
       if (isCollapsed) this.setCollapsed(false);
       else if (e.shiftKey) {
         this.setCollapsed(true);