HTTPArchive / almanac.httparchive.org

HTTP Archive's annual "State of the Web" report made by the web community

Home Page:https://almanac.httparchive.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Previous/Next shortcut keys triggered in search box

tunetheweb opened this issue · comments

We have a search box on our site.

We also have short cut keys to quickly skip through chapters:

  • p goes to previous chapter
  • n goes to the next chapter

Unfortunately these don’t play well together (on desktop at least) and you can’t search for a term including either of these characters on a chapter page without triggering the navigation.

We should capture key presses and prevent them bubbling up to the document when in the input.

Should be a quick one for any of the @HTTPArchive/developers wanting to get their first PR under their belt!