From 68d3d4f4e860f339c11fe0b7aa046f15c44f248f Mon Sep 17 00:00:00 2001 From: Yuhei Yasuda Date: Sat, 8 Aug 2020 23:22:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Don=E2=80=99t=20prevent=20the=20browser?= =?UTF-8?q?=E2=80=99s=20default=20behavior=20for=20modifier=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/router.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/router.ts b/src/client/app/router.ts index 8b4b678ecde0..447571cf2b0e 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -98,6 +98,7 @@ export function createRouter( // only intercept inbound links if ( target !== `_blank` && + !(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) && protocol === currentUrl.protocol && hostname === currentUrl.hostname ) {