Skip to content

Commit f9aa052

Browse files
WebsiteDevelopermarijnh
authored andcommitted
Signal overwriteToggle event
Issue #2180
1 parent 5523871 commit f9aa052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/codemirror.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,8 @@ window.CodeMirror = (function() {
32283228
this.display.cursor.className += " CodeMirror-overwrite";
32293229
else
32303230
this.display.cursor.className = this.display.cursor.className.replace(" CodeMirror-overwrite", "");
3231+
3232+
signal(this, "overwriteToggle", this, this.state.overwrite);
32313233
},
32323234
hasFocus: function() { return document.activeElement == this.display.input; },
32333235

0 commit comments

Comments
 (0)