adobe/brackets — pull request #2422 by njx (2012-12-20 22:32:49+00:00)
Title: Use a more reliable way to determine whether focus is in an inline widget

Unit tests for inline widgets fail intermittently when run as part of the entire test suite. The problem appears to be that the way we're determining whether a widget currently has focus isn't entirely reliable for some reason. This pull request uses a different method that seems like it ought to be reasonably foolproof.