Skip to content

Commit bec4841

Browse files
authored
Support typing '/' to search (#8566)
1 parent 4c5380b commit bec4841

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/search-form.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
local-class="input-lg"
2424
name="q"
2525
id="cargo-desktop-search"
26-
placeholder="Press 'S' to focus this searchbox..."
26+
placeholder="Type 'S' or '/' to search"
2727
value={{this.header.searchValue}}
2828
oninput={{this.updateSearchValue}}
2929
autofocus="autofocus"
@@ -53,4 +53,5 @@
5353
{{on-key 's' (focus '#cargo-desktop-search')}}
5454
{{on-key 'S' (focus '#cargo-desktop-search')}}
5555
{{on-key 'shift+s' (focus '#cargo-desktop-search')}}
56+
{{on-key '/' (focus '#cargo-desktop-search')}}
5657
</form>

0 commit comments

Comments
 (0)