Skip to content

Commit

Permalink
Support typing '/' to search (#8566)
Browse files Browse the repository at this point in the history
  • Loading branch information
mu001999 authored May 2, 2024
1 parent 4c5380b commit bec4841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/search-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
local-class="input-lg"
name="q"
id="cargo-desktop-search"
placeholder="Press 'S' to focus this searchbox..."
placeholder="Type 'S' or '/' to search"
value={{this.header.searchValue}}
oninput={{this.updateSearchValue}}
autofocus="autofocus"
Expand Down Expand Up @@ -53,4 +53,5 @@
{{on-key 's' (focus '#cargo-desktop-search')}}
{{on-key 'S' (focus '#cargo-desktop-search')}}
{{on-key 'shift+s' (focus '#cargo-desktop-search')}}
{{on-key '/' (focus '#cargo-desktop-search')}}
</form>

0 comments on commit bec4841

Please sign in to comment.