From 2a897b5639771dcc7e0429d6ea2f6d211d44dbcb Mon Sep 17 00:00:00 2001 From: Yuri Istomin <> Date: Wed, 7 Dec 2022 12:10:37 +0200 Subject: [PATCH] Added ctrl key check --- lib/templates/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/plugin.js b/lib/templates/plugin.js index 5421073..149d2ec 100644 --- a/lib/templates/plugin.js +++ b/lib/templates/plugin.js @@ -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) }