Skip to content

Commit

Permalink
Signal overwriteToggle event
Browse files Browse the repository at this point in the history
Issue #2180
  • Loading branch information
WebsiteDeveloper authored and marijnh committed Jan 28, 2014
1 parent 5523871 commit f9aa052
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/codemirror.js
Expand Up @@ -3228,6 +3228,8 @@ window.CodeMirror = (function() {
this.display.cursor.className += " CodeMirror-overwrite";
else
this.display.cursor.className = this.display.cursor.className.replace(" CodeMirror-overwrite", "");

signal(this, "overwriteToggle", this, this.state.overwrite);
},
hasFocus: function() { return document.activeElement == this.display.input; },

Expand Down

0 comments on commit f9aa052

Please sign in to comment.