Autofocus

Autofocus the search whenever a key is pressed (besides ctrl/alt/meta + key)

May want to consider only doing this when the search is in the viewport? I personally prefer it like this however. (code is stolen from one of my old projects)
Sure, though it'd probably never be imported on node. I was surprised that
`this` was not equal to the global

On Sun, Oct 5, 2014 at 8:57 PM, Martin Kolárik <notifications@github.com>
wrote:

> In public/js/decorators/auto-focus.js:
>
> > @@ -0,0 +1,26 @@
> > +// Focuses an input element whenever a key is pressed
> > +// outside of some other key is pressed.
> > +var $ = jQuery;
> > +var $document = $(window.document);
>
> var $ = jQuery; can be removed, var $document = $(window.document) needs
> to be inside the function - otherwise it would throw on node since there's
> no window
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jsdelivr/beta.jsdelivr.com/pull/20/files#r18439038>.
>