From 5e503013bafacbf5171da557f60cf019422ebdc1 Mon Sep 17 00:00:00 2001 From: pikax Date: Sat, 22 Aug 2020 14:32:33 +0100 Subject: [PATCH 1/2] fix(router): allow open new tab with ctrl + click --- 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..f3b97401df78 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -97,6 +97,7 @@ export function createRouter( const currentUrl = window.location // only intercept inbound links if ( + !e.ctrlKey && target !== `_blank` && protocol === currentUrl.protocol && hostname === currentUrl.hostname From 398bf2fd330e581ba6c20be8968f243b99d5ae75 Mon Sep 17 00:00:00 2001 From: pikax Date: Sat, 22 Aug 2020 14:33:34 +0100 Subject: [PATCH 2/2] chore: add other keys --- src/client/app/router.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/app/router.ts b/src/client/app/router.ts index f3b97401df78..02499af634c4 100644 --- a/src/client/app/router.ts +++ b/src/client/app/router.ts @@ -98,6 +98,9 @@ export function createRouter( // only intercept inbound links if ( !e.ctrlKey && + !e.shiftKey && + !e.altKey && + !e.metaKey && target !== `_blank` && protocol === currentUrl.protocol && hostname === currentUrl.hostname