adobe/brackets — pull request #6926 by redmunds (2014-02-19 20:54:44+00:00)
Title: Restore focus after altering inline widget

cc @njx - this is for #6767.

**Note** that we may not want to take this fix in this form, but it illustrates problem.

I trapped this issue by changing this code (InlineTextEditor.js line 182):

```
if (this.editor) {
this.editor.focus();
}
```

to:

```
if (this.editor) {
this.editor._codeMirror.on("blur", function () {
console.log("blurred..."); // put BREAKPOINT HERE
});
this.editor.focus();
}
```

When you hit that breakpoint and look at the callstack at CodeMirror function updateDisplayInner(), you can see it's doing something similar. Maybe that code needs to be fixed?