Skip to content

Commit 1ab8bfb

Browse files
committed
Add comment to search input shortcut code
1 parent 542c4ce commit 1ab8bfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/_assets/js/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Prism.highlightAll()
1414
anchors.options = { placement: 'left', class: 'text-slate-light' };
1515
anchors.add();
1616

17+
// Add shortcut to search input when pressing the "/" key
1718
document.onkeyup = function (e) {
1819
if (e.which == 191) {
1920
document.getElementById('docsearch').focus();
2021
}
21-
};
22+
};

0 commit comments

Comments
 (0)