ivaynberg/select2 — pull request #1694 by cnanney (2013-09-07 00:14:49+00:00)
Title: Fix focus on select

I noticed this issue while using the [bootstrap integration](https://github.com/t0m/select2-bootstrap-css). When selecting an option, focus was going back to the `select2-choice` element. This would break the flow of navigating the form solely via keyboard, as it would take an extra tab to get back to the `select2-focusser` element. This is illustrated below:

![select2-bootstrap-bad](https://f.cloud.github.com/assets/195134/1100255/9f9a1cbc-1750-11e3-8aa8-4b1960e2ab5b.gif)

Notice how after selecting a choice, the `select2-choice` anchor is focused (yellow), then I must press tab again to focus the `select2-focusser` input, then propagating up to give the all-important `select2-container-active` class to the container, giving the nice blue border.

This breaks the flow of the form (requiring two tab presses) and looks bad if using bootstrap. This fix sends focus right to the `select2-focusser` input on select, and returns it to expected behavior:

![select2-bootstrap-good](https://f.cloud.github.com/assets/195134/1100283/124f1324-1752-11e3-9e20-3be4f44a106b.gif)