let new tab shortcuts work normally for links
enables ctrl-clicking, middle-clicking, etc. for anchors when using pathname routing
This commit is contained in:
parent
22deb93d04
commit
25237f1425
1 changed files with 1 additions and 0 deletions
|
|
@ -314,6 +314,7 @@ Mithril = m = new function app(window) {
|
|||
}
|
||||
}
|
||||
function routeUnobtrusive(e) {
|
||||
if (e.ctrlKey || e.metaKey || e.which == 2) return
|
||||
e.preventDefault()
|
||||
m.route(e.currentTarget.getAttribute("href"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue