adobe/brackets — pull request #5311 by busykai (2013-09-23 22:47:53+00:00)
Title: Fix #5310 (Editor HTML menus are broken).

Override the implementation of the jquery focus() to prevent HTML menus
(class "dropdown-toggle") grabbing the focus.

Bootstrap's dropdown implementation exlicitly calls focus() which causes
currently active CM instance to lose focus. As the result, when the
command is executed, it cannot get ahold of the current editor instance.