Skip to content

Commit 53b8b40

Browse files
committed
don't override behavior of control click in fragment jumper
1 parent 2cc48c7 commit 53b8b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/03-fragment-jumper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
function jumpToAnchor (e) {
1616
if (e) {
17-
if (e.altKey) return
17+
if (e.altKey || e.ctrlKey) return
1818
window.location.hash = '#' + this.id
1919
e.preventDefault()
2020
}

0 commit comments

Comments
 (0)