Add comment to search input shortcut code

This commit is contained in:
Jonathan Reinink 2017-11-08 09:48:27 -05:00
parent 542c4cea9e
commit 1ab8bfbe15

View file

@ -14,8 +14,9 @@ Prism.highlightAll()
anchors.options = { placement: 'left', class: 'text-slate-light' };
anchors.add();
// Add shortcut to search input when pressing the "/" key
document.onkeyup = function (e) {
if (e.which == 191) {
document.getElementById('docsearch').focus();
}
};
};