From a557f9bbaafc67702a5e06d7eea3545f537449b7 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Fri, 3 Jan 2025 00:48:59 +0900 Subject: [PATCH] Fix keyboard shortcut for open status (#33419) --- app/javascript/mastodon/components/status.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx index 9f57629807..a2759b8345 100644 --- a/app/javascript/mastodon/components/status.jsx +++ b/app/javascript/mastodon/components/status.jsx @@ -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); } };