Skip to content

Commit

Permalink
Update search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 1, 2020
1 parent 316d736 commit fba2400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
var inputElement = document.getElementById('search-input')
var siteDocsVersion = inputElement.getAttribute('data-docs-version')

document.addEventListener('keydown', function (e) {
if (e.ctrlKey && e.key === '/') {
e.preventDefault()
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.key === '/') {
event.preventDefault()
inputElement.focus()
}
})
Expand Down

0 comments on commit fba2400

Please sign in to comment.