From e0ceb4a6ed495a59754351aff6ad54ce5c124512 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Tue, 1 Dec 2020 15:23:57 -0500 Subject: [PATCH] to respect Meta key (#139) Co-authored-by: Christian Engel --- src/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Link.js b/src/Link.js index 15895f7..643815c 100644 --- a/src/Link.js +++ b/src/Link.js @@ -19,7 +19,7 @@ import {navigate, getBasepath} from "./router"; */ export const setLinkProps = (props) => { const onClick = (e) => { - if (!e.shiftKey && !e.ctrlKey && !e.altKey && props.target !== "_blank")) { + if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey && props.target !== "_blank")) { e.preventDefault(); // prevent the link from actually navigating navigate(e.currentTarget.href); }