adobe/brackets — pull request #1262 by jason-sanjose (2012-07-16 22:35:23+00:00)
Title: Implement esc key to close pop-ups and inline widgets

Assigned to @tvoliter

* Esc when the main editor has focus closes all inline widgets
* Esc when an inline widget has focus closes that widget alone
* Esc when a menu (top-level, context and code hint) is open closes the dropdown
* Fix bug that allows typing in the editor when a menu is open

Note: I noticed that ``Menus`` and ``CodeHintManager`` share positioning logic. It makes sense to refactor this into ``PopUpManager`` in the future.