-
Notifications
You must be signed in to change notification settings - Fork 18k
x/pkgsite: search shortcut key doesn't work consistently across site #42704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The search keyboard shortcut should also work consistently across *go.dev. See #45268. |
Change https://golang.org/cl/328312 mentions this issue: |
Change https://golang.org/cl/328330 mentions this issue: |
The keyboard controller will standardize keyboard events and centrally locate the logic for when to fire or ignore callbacks. For golang/go#42704 Change-Id: I0ce01db97b5188cda9fd72d3c910812ea8ae1bb2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328312 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Moves the keyboard event registration to frontend.ts to take advantage of the shared keyboard controller. Fixes search keyboard focus on the homepage. For golang/go#42704 Change-Id: Icfb3f88460ad0d0e00f26651a4626efdc601f611 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328330 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Done. |
Change https://golang.org/cl/335669 mentions this issue: |
On non-firefox browsers the search input is focussed after pressing the / key to match the behavior of pkg.go.dev. Fixes golang/go#42704 Change-Id: I81a804a9062f78997f3161ec86d1adcb8a911c92 Reviewed-on: https://go-review.googlesource.com/c/website/+/335669 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
Reopened because of #47294. |
Change https://golang.org/cl/336250 mentions this issue: |
On non-firefox browsers the search input is focussed after pressing the / key to match the behavior of pkg.go.dev. Fixes golang/go#42704 Change-Id: I81a804a9062f78997f3161ec86d1adcb8a911c92 Reviewed-on: https://go-review.googlesource.com/c/website/+/335669 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
This reverts CL 335969. Reason for revert: broken tests fixed. Fixes golang/go#42704. Change-Id: Ie7090d256b2d93fb222659f5c5494a3589c48e59 Reviewed-on: https://go-review.googlesource.com/c/website/+/336250 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
Using the '/' shortcut for search works on package/module pages (e.g., https://pkg.go.dev/flag), but doesn't work on the home page or search results pages (e.g., https://pkg.go.dev/search?q=command). I expected the shortcut keys to behave consistently across the site.
What is the URL of the page with the issue?
https://pkg.go.dev/search?q=command
https://pkg.go.dev/
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
What did you do?
Pressed the '/' search shortcut key.
What did you expect to see?
I expected focus to move to the search box, as it does on package/module pages.
What did you see instead?
Nothing happened :(
The text was updated successfully, but these errors were encountered: