| author | |
| committer | |
| log | 5d20a4e35cbbbc11e32dbffd2e8302d4810fbbea |
| tree | b21eaff47a61c73618a04d6946156e59e44d530d |
| parent | 13aaa16ab2cac5c07a970a3b49f5dd0ffd4d3539 |
Per Discord discussion. Motivation: `/` is now the de facto standard for initating search on webpages.2 files changed, 2 insertions(+), 1 deletions(-)
lib/docs/index.html+1-1| ... | @@ -758,7 +758,7 @@ | ... | @@ -758,7 +758,7 @@ |
| 758 | <div class="wrap"> | 758 | <div class="wrap"> |
| 759 | <section class="docs" style="padding-top: 1.5rem; padding-bottom:0;"> | 759 | <section class="docs" style="padding-top: 1.5rem; padding-bottom:0;"> |
| 760 | <div style="position: relative"> | 760 | <div style="position: relative"> |
| 761 | <span id="searchPlaceholder"><kbd>s</kbd> to search, <kbd>?</kbd> for more options</span> | 761 | <span id="searchPlaceholder"><kbd>/</kbd> or <kbd>s</kbd> to search, <kbd>?</kbd> for more options</span> |
| 762 | <input type="search" class="search" id="search" autocomplete="off" spellcheck="false" disabled> | 762 | <input type="search" class="search" id="search" autocomplete="off" spellcheck="false" disabled> |
| 763 | </div> | 763 | </div> |
| 764 | </section> | 764 | </section> |
lib/docs/main.js+1| ... | @@ -4031,6 +4031,7 @@ function addDeclToSearchResults(decl, declIndex, modNames, item, list, stack) { | ... | @@ -4031,6 +4031,7 @@ function addDeclToSearchResults(decl, declIndex, modNames, item, list, stack) { |
| 4031 | case "Esc": | 4031 | case "Esc": |
| 4032 | onEscape(ev); | 4032 | onEscape(ev); |
| 4033 | break; | 4033 | break; |
| 4034 | case "/": | ||
| 4034 | case "s": | 4035 | case "s": |
| 4035 | if (domHelpModal.classList.contains("hidden")) { | 4036 | if (domHelpModal.classList.contains("hidden")) { |
| 4036 | if (ev.target == domSearch) break; | 4037 | if (ev.target == domSearch) break; |