Fix keyboard shortcut for open status (#33419)

This commit is contained in:
Jeong Arm 2025-01-03 00:48:59 +09:00 committed by GitHub
parent 00a8a5467c
commit a557f9bbaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
};