Skip to content

Commit 092ee77

Browse files
authored
fix(router): allow open new tab with ctrl + click (#69)
* fix(router): allow open new tab with ctrl + click * chore: add other keys
1 parent 5daaa90 commit 092ee77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/app/router.ts

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export function createRouter(
9797
const currentUrl = window.location
9898
// only intercept inbound links
9999
if (
100+
!e.ctrlKey &&
101+
!e.shiftKey &&
102+
!e.altKey &&
103+
!e.metaKey &&
100104
target !== `_blank` &&
101105
protocol === currentUrl.protocol &&
102106
hostname === currentUrl.hostname

0 commit comments

Comments
 (0)