Issue by peterflynn
Friday Apr 04, 2014 at 23:58 GMT
Originally opened as adobe/brackets#7419
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.
peterflynn included the following code: https://github.com/adobe/brackets/pull/7419/commits
Friday Apr 04, 2014 at 23:58 GMT
Originally opened as adobe/brackets#7419
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.peterflynn included the following code: https://github.com/adobe/brackets/pull/7419/commits