I had a uservoice suggestion about this :

Give an accesskey attribute to the search box so we can quickly give the focus to the textbox with :

  • alt + shift + [accesskey] on Firefox
  • alt + [accesskey] on IE.

Sometimes I just want to quickly jump to the search box from anywhere on the page, and having accesskey property on the input tag would be the easiest way to do this.

  • and ctr+[accesskey] on a mac – Doug Harris Sep 29 '09 at 17:11

I have a Greasemonkey script that sets the f accesskey on the search box like on Wikipedia.


The script works on all the individual Stack Exchange sites and meta sites, http://stackexchange.com, http://data.stackexchange.com, http://area51.stackexchange.com/, all chat sites and the Stack Exchange blogs.

Unfortunately by using Greasmonkey the page has to finish loading completely before the accesskey is usable.

| improve this answer | |
  • 1
    I updated the code slightly: pastebin.com/Y50h9yWR, adding in content from meta.stackexchange.com/q/67841 and including chat in the list of supported sites – Yi Jiang Jun 23 '11 at 13:23
  • @Yi Jiang I've updated the script on userscripts.org. I somehow missed that in most cases the search box already has an id. Using CSS instead of the unwieldy XPath API otherwise also makes things much simpler. Thanks a lot! – Alex Jasmin Jun 23 '11 at 18:16
  • @Yi Jiang I also put back some of the included sites as stackexchange.com, chat.stackoverflow.com, chat.meta.stackoverflow.com, and the blog sites were missing from the list. – Alex Jasmin Jun 23 '11 at 19:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .