Organize site mode keyboard bindings
Committed 3921d0
--- a/canopy/templates/template.html
+++ b/canopy/templates/template.html
document.querySelector('body').style.backgroundImage = 'url(/static/measure.png)'
cookies.set('rhythm', 'on')
}
- } else if (ev.key == 'f') showKeyboardFollowLinks() // f show "follow links"
+ } else if (ev.key == '?') goHelp() // ? show help
+ else if (ev.key == 'f') showKeyboardFollowLinks() // f show "follow links"
else if (ev.key == 'm') goHome() // m go home
- else if (ev.key == '?') goHelp() // ? show help
else if (ev.key == 'h') goBack() // h go back
else if (ev.key == 'j') scrollDown() // j scroll down 3 EMs
else if (ev.key == 'k') scrollUp() // k scroll up 3 EMs
else if (ev.key == 'l') goForward() // l go forward
+ else if (ev.key == 'u') goUp() // u follow rel=up
+ else if (ev.key == 'p') goPrevious() // p follow rel=prev
+ else if (ev.key == 'n') goNext() // n follow rel=next
else if (ev.key == '[') pageUp() // [ scroll page up
else if (ev.key == ']') pageDown() // ] scroll page down
else if (ev.key == '{') scrollTop() // { scroll to top
else if (ev.key == '}') scrollBottom() // } scroll to bottom
- else if (ev.key == 'u') goUp() // u follow rel=up
- else if (ev.key == 'p') goPrevious() // p follow rel=prev
- else if (ev.key == 'n') goNext() // n follow rel=next
}, false)
})