Skip to content

Commit

Permalink
Added ctrl key check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Istomin committed Dec 7, 2022
1 parent ec57921 commit 2a897b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default ({ app: { router } }) => {
const href = event.currentTarget.getAttribute('href')
if (href && href[0] === '/') {
event.preventDefault()
event.metaKey
event.metaKey || event.ctrlKey
? window.open(href, '_blank', 'noopener')
: router.push(href)
}
Expand Down

0 comments on commit 2a897b5

Please sign in to comment.