Add comment to search input shortcut code
This commit is contained in:
parent
542c4cea9e
commit
1ab8bfbe15
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue