mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 17:35:01 +01:00
Fix keyboard shortcut for open status
This commit is contained in:
parent
8770905186
commit
e1e90b5dd4
@ -290,10 +290,10 @@ class Status extends ImmutablePureComponent {
|
||||
|
||||
const path = `/@${status.getIn(['account', 'acct'])}/${status.get('id')}`;
|
||||
|
||||
if (e?.button === 0 && !(e?.ctrlKey || e?.metaKey)) {
|
||||
history.push(path);
|
||||
} else if (e?.button === 1 || (e?.button === 0 && (e?.ctrlKey || e?.metaKey))) {
|
||||
if (e?.button === 1 || (e?.button === 0 && (e?.ctrlKey || e?.metaKey))) {
|
||||
window.open(path, '_blank', 'noopener');
|
||||
} else {
|
||||
history.push(path);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user