From 5d20a4e35cbbbc11e32dbffd2e8302d4810fbbea Mon Sep 17 00:00:00 2001 From: cryptocode Date: Sat, 29 Apr 2023 20:48:18 +0200 Subject: [PATCH 1/2] autodoc: Add / as an alternative search key Per Discord discussion. Motivation: `/` is now the de facto standard for initating search on webpages. --- lib/docs/index.html | 2 +- lib/docs/main.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/docs/index.html b/lib/docs/index.html index 6b9f95a7d0..b51b41c505 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -758,7 +758,7 @@
- s to search, ? for more options + / or s to search, ? for more options
diff --git a/lib/docs/main.js b/lib/docs/main.js index 14bcf0f544..f217e80a2c 100644 --- a/lib/docs/main.js +++ b/lib/docs/main.js @@ -4031,6 +4031,7 @@ function addDeclToSearchResults(decl, declIndex, modNames, item, list, stack) { case "Esc": onEscape(ev); break; + case "/": case "s": if (domHelpModal.classList.contains("hidden")) { if (ev.target == domSearch) break; From 0fc1d396495c1ab482197021dedac8bea3f9401c Mon Sep 17 00:00:00 2001 From: cryptocode Date: Wed, 3 May 2023 12:10:52 +0200 Subject: [PATCH 2/2] Add new shortcut to help popup --- lib/docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/index.html b/lib/docs/index.html index b51b41c505..afed39bea2 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -876,7 +876,7 @@