Merge pull request #283 from skollro/fix-docsearch-shortcut

Fix docsearch shortcut
This commit is contained in:
Adam Wathan 2017-12-02 20:04:06 -05:00 committed by GitHub
commit 0b8f45e445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,5 +17,6 @@ anchors.add()
// Add shortcut to search input when pressing the "/" key
Mousetrap.bind('/', function (e) {
e.preventDefault()
document.getElementById('docsearch').focus()
}, 'keyup')
})