From e23bd3cfdaf3211c8ed63219e23204697108cb38 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Wed, 22 Oct 2025 15:50:07 +0200 Subject: Improve messages and README Use README.rmd in order to be able to include demo code and output in the README. --- docs/pkgdown.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/pkgdown.js') 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 + } +}); -- cgit v1.2.3