From cb007c0c1cdc18f755ddea67ea5291857f0fc1f8 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 20 Dec 2020 17:00:29 -0700 Subject: [PATCH] don't override behavior of modified clicks in fragment jumper --- src/js/03-fragment-jumper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/03-fragment-jumper.js b/src/js/03-fragment-jumper.js index 68f580d..60f3eab 100644 --- a/src/js/03-fragment-jumper.js +++ b/src/js/03-fragment-jumper.js @@ -14,6 +14,7 @@ function jumpToAnchor (e) { if (e) { + if (e.altKey || e.ctrlKey) return window.location.hash = '#' + this.id e.preventDefault() } -- 2.11.0