mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-03 13:33:32 -05:00
[Glitch] Fix keyboard shortcut for open status
Port a557f9bbaafc67702a5e06d7eea3545f537449b7 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
970eaae2f1
commit
539fa40623
@ -365,10 +365,10 @@ class Status extends ImmutablePureComponent {
|
|||||||
|
|
||||||
const path = `/@${status.getIn(['account', 'acct'])}/${status.get('id')}`;
|
const path = `/@${status.getIn(['account', 'acct'])}/${status.get('id')}`;
|
||||||
|
|
||||||
if (e?.button === 0 && !(e?.ctrlKey || e?.metaKey)) {
|
if (e?.button === 1 || (e?.button === 0 && (e?.ctrlKey || e?.metaKey))) {
|
||||||
history.push(path);
|
|
||||||
} else if (e?.button === 1 || (e?.button === 0 && (e?.ctrlKey || e?.metaKey))) {
|
|
||||||
window.open(path, '_blank', 'noopener');
|
window.open(path, '_blank', 'noopener');
|
||||||
|
} else {
|
||||||
|
history.push(path);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user