From d044217b9858c5f4748e35988136ef7a049b1789 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:24:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B6=E5=BE=A1=E3=82=AD=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E5=A0=B4=E5=90=88=E3=82=92=E5=80=8B=E5=88=A5=E3=83=8F?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=83=AA=E3=83=B3=E3=82=B0=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=81=AE=E3=81=A7=E3=81=AF=E3=81=AA=E3=81=8F=E3=83=96=E3=83=A9?= =?UTF-8?q?=E3=82=A6=E3=82=B6=E6=97=A2=E5=AE=9A=E3=81=AE=E6=8C=99=E5=8B=95?= =?UTF-8?q?=E3=81=AB=E4=BB=BB=E3=81=9B=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/global/MkA.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/global/MkA.vue b/packages/frontend/src/components/global/MkA.vue index 02a86f1646..99693a4c00 100644 --- a/packages/frontend/src/components/global/MkA.vue +++ b/packages/frontend/src/components/global/MkA.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only --> @@ -86,6 +86,11 @@ function openWindow() { } function nav(ev: MouseEvent) { + // 制御キーとの組み合わせは無視(shiftを除く) + if (ev.metaKey || ev.altKey || ev.ctrlKey) return; + + ev.preventDefault(); + if (behavior === 'browser') { window.location.href = props.to; return; @@ -99,11 +104,6 @@ function nav(ev: MouseEvent) { return openWindow(); } - if (ev.ctrlKey) { - window.open(props.to, '_blank', 'noopener'); - return; - } - router.pushByPath(props.to, ev.ctrlKey ? 'forcePage' : null); }