Fix docsearch shortcut
This commit is contained in:
parent
0eb520927a
commit
2cf4a2ade6
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue