We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be2fd26 commit 694cc40Copy full SHA for 694cc40
inst/BS5/assets/pkgdown.js
@@ -152,3 +152,11 @@ async function searchFuse(query, callback) {
152
});
153
154
})(window.jQuery || window.$)
155
+
156
+document.addEventListener('keydown', function(event) {
157
+ // Check if the pressed key is '/'
158
+ if (event.key === '/') {
159
+ event.preventDefault(); // Prevent any default action associated with the '/' key
160
+ document.getElementById('search-input').focus(); // Set focus to the search input
161
+ }
162
+});
0 commit comments