Index: Source/devtools/front_end/CodeMirrorTextEditor.js |
diff --git a/Source/devtools/front_end/CodeMirrorTextEditor.js b/Source/devtools/front_end/CodeMirrorTextEditor.js |
index d1168145e8cec3062ab1e7bf87852ada7857c83d..7cd7ba35d7308918c8bf315013e7bc4ef14b2155 100644 |
--- a/Source/devtools/front_end/CodeMirrorTextEditor.js |
+++ b/Source/devtools/front_end/CodeMirrorTextEditor.js |
@@ -157,6 +157,7 @@ WebInspector.CodeMirrorTextEditor = function(url, delegate) |
this._codeMirror.on("beforeSelectionChange", this._beforeSelectionChange.bind(this)); |
this._codeMirror.on("scroll", this._scroll.bind(this)); |
this._codeMirror.on("focus", this._focus.bind(this)); |
+ this._codeMirror.on("blur", this._blur.bind(this)); |
this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false); |
/** |
* @this {WebInspector.CodeMirrorTextEditor} |
@@ -1030,6 +1031,11 @@ WebInspector.CodeMirrorTextEditor.prototype = { |
this._delegate.editorFocused(); |
}, |
+ _blur: function() |
+ { |
+ this._delegate.editorBlurred(); |
+ }, |
+ |
/** |
* @param {number} lineNumber |
*/ |