adobe/brackets — pull request #2414 by peterflynn (2012-12-20 16:47:23+00:00)
Title: Fix bug #2137 (Pressing Ctrl+E again does not close color picker)

Fix bug #2137 (Pressing Ctrl+E again does not close color picker)

Simplify focus-related inline editor APIs:
- add InlineWidget.hasFocus() & InlineTextEditor.getFocusedEditor()
- remove moveFocus arg from EditorManager.closeInlineWidget() (since it can now just ask the widget via the above API)
- fix InlineWidget.close() to not assume _editorHasFocus() exists (& eliminate InlineTextEditor._editorHasFocus()) - no longer need to compute a value for moveFocus
- remove hacky fake _editorHasFocus() impl in InlineColorEditor
- remove hacky close() override in InlineImageViewer (as noted in #2285)
- make EditorManager.getFocusedInlineWidget() return any focused widget, not just InlineTextEditors; returns widget directly instead of a bag wrapper