Search docs with S instead of /

It turns out / on Firefox is already search,
and we don't want to override that.

Also adds a tip to make the shortcut discoverable.
This commit is contained in:
Richard Feldman 2022-10-09 04:26:00 -04:00
parent 04bceae956
commit 34f56371f7
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
3 changed files with 11 additions and 7 deletions

View file

@ -15,7 +15,7 @@
<body>
<nav id="sidebar-nav">
<input id="module-search" aria-labelledby="search-link" type="text" placeholder="Search" />
<label for="module-search" id="search-link">Search</label>
<label for="module-search" id="search-link"><span id="search-link-text">Search</span> <span id="search-link-hint">(shortcut: S)</span></label>
<div class="module-links">
<!-- Module links -->
</div>