diff options
| author | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2025-10-22 15:50:07 +0200 |
|---|---|---|
| committer | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2025-10-22 15:50:07 +0200 |
| commit | e23bd3cfdaf3211c8ed63219e23204697108cb38 (patch) | |
| tree | aafab511ea9eeaa6d92987bda1ae8ce2e3f595bf /docs/pkgdown.js | |
| parent | adc69bd4e1543a229fbee543940f8b92fd499682 (diff) | |
Improve messages and README
Use README.rmd in order to be able to include demo code and output
in the README.
Diffstat (limited to 'docs/pkgdown.js')
| -rw-r--r-- | docs/pkgdown.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js index 9757bf9..1a99c65 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); |
