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.
lolsob-rspec
Thibaut Girka 2018-08-10 18:00:30 +02:00 committed by ThibG
parent ad8543c962
commit ac67589755
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ export default class Status extends ImmutablePureComponent {
status.getIn(['reblog', 'id'], status.get('id')) 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); if (isCollapsed) this.setCollapsed(false);
else if (e.shiftKey) { else if (e.shiftKey) {
this.setCollapsed(true); this.setCollapsed(true);