add search shortcut

This commit is contained in:
Vince Mitchell 2017-11-08 09:29:55 -05:00
parent 30e57119a6
commit 08bbc74746

View File

@ -13,3 +13,9 @@ const app = new Vue({
Prism.highlightAll()
anchors.options = { placement: 'left', class: 'text-slate-light' };
anchors.add();
document.onkeyup = function (e) {
if (e.which == 191) {
document.getElementById('docsearch').focus();
}
};