What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

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.

share|improve this question
and ctr+[accesskey] on a mac – Doug Harris Sep 29 '09 at 17:11

1 Answer 1

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.

share|improve this answer
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! – Alexandre 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. – Alexandre 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 .