don't override behavior of modified clicks in fragment jumper
authorDan Allen <dan@opendevise.com>
Mon, 21 Dec 2020 00:00:29 +0000 (17:00 -0700)
committerDan Allen <dan@opendevise.com>
Mon, 21 Dec 2020 00:00:29 +0000 (17:00 -0700)
src/js/03-fragment-jumper.js

index 68f580d..60f3eab 100644 (file)
@@ -14,6 +14,7 @@
 
   function jumpToAnchor (e) {
     if (e) {
+      if (e.altKey || e.ctrlKey) return
       window.location.hash = '#' + this.id
       e.preventDefault()
     }