Please fall back to browsers' native Quick Find when / hotkey pressed more than once #51313
Unanswered
Roy-Orbison
asked this question in
Code Search and Navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
I personally hate it when sites grab the / key, but GitHub's certainly not alone, and keyboard nav is a good thing. The problem is you do it without falling back to native behaviour, which is unnecessary. This borders on an accessibility issue.
I did up a basic gist to show that it can be captured gracefully.
On browsers without Quick Find, that code simply toggles focus, so key mashers only need an odd number of hits to focus the input ;)
Beta Was this translation helpful? Give feedback.
All reactions