Merge pull request #151 from vmitchell85/master

Add Shortcut to search
This commit is contained in:
Jonathan Reinink 2017-11-08 09:43:46 -05:00 • committed by GitHub
commit 542c4cea9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}
};