From 092ee772dafa78a66c2e35524bd921eb0aa31b16 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Thu, 3 Sep 2020 04:19:27 +0100 Subject: [PATCH] fix(router): allow open new tab with ctrl + click (#69) * fix(router): allow open new tab with ctrl + click * chore: add other keys --- src/client/app/router.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/app/router.ts b/src/client/app/router.ts index 8b4b678ecde0..02499af634c4 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -97,6 +97,10 @@ export function createRouter( const currentUrl = window.location // only intercept inbound links if ( + !e.ctrlKey && + !e.shiftKey && + !e.altKey && + !e.metaKey && target !== `_blank` && protocol === currentUrl.protocol && hostname === currentUrl.hostname