[Glitch] Fix keyboard shortcut for open status

Port a557f9bbaa to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2926/head
Jeong Arm 2025-01-03 00:48:59 +09:00 committed by Claire
parent 970eaae2f1
commit 539fa40623
1 changed files with 3 additions and 3 deletions

View File

@ -365,10 +365,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);
}
};