Skip to content

[CLOSED] Fix bug #7402 (Focus not set to inline editor after creating new rule) #6687

@core-ai-bot

Description

@core-ai-bot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions