From ac675897556aa417de2668eddf394899c4e7326f Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Fri, 10 Aug 2018 18:00:30 +0200 Subject: [PATCH] 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. --- app/javascript/flavours/glitch/components/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index 169cd3963a..da1f74e6dd 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);