projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c4a4f
)
don't override behavior of modified clicks in fragment jumper
author
Dan Allen
<dan@opendevise.com>
Mon, 21 Dec 2020 00:00:29 +0000
(17:00 -0700)
committer
Dan Allen
<dan@opendevise.com>
Mon, 21 Dec 2020 00:00:29 +0000
(17:00 -0700)
src/js/03-fragment-jumper.js
patch
|
blob
|
history
diff --git
a/src/js/03-fragment-jumper.js
b/src/js/03-fragment-jumper.js
index
68f580d
..
60f3eab
100644
(file)
--- 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()
}