adobe/brackets — pull request #7419 by peterflynn (2014-04-04 23:58:19+00:00)
Title: Fix bug #7402 (Focus not set to inline editor after creating new rule)

Fix bug #7402 -- If the client of the DropdownButton changes focus in response to the `"select"` event that closes it, leave focus in that new location. Only restore focus to where it was before the dropdown was opened if no one has touched the focus while it's closing.

You can test the case where it _is_ supposed to restore focus by commenting out the body of `CSSInlineEditor._onDropdownSelect()` -- choosing an item from the dropdown should restore focus to the original editor in that case.

@njx, up to you if you think this should go into Sprint 38 or not.