webstatus.dev icon indicating copy to clipboard operation
webstatus.dev copied to clipboard

Typing / should focus the search field

Open past opened this issue 1 year ago • 1 comments

This is quite common in pages with a search field (Google Search, GMail, etc.): when the search field isn't focused, hitting the '/' key brings it into focus without having to use Tab and keep going through the tabindex elements.

past avatar May 13 '24 18:05 past

One thing to add to the definition of done

There should be a test that:

  • asserts that the search bar is present but not focused
  • Press the / button
  • asserts that the search bar is present and focused

jcscottiii avatar Aug 22 '24 16:08 jcscottiii