add search shortcut
This commit is contained in:
parent
30e57119a6
commit
08bbc74746
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue