##// END OF EJS Templates
Modifying CodeMirror focus hack to work better....
Brian E. Granger -
Show More
@@ -184,7 +184,6 b' var IPython = (function (IPython) {'
184 // While this seems to fix the issue, this should be fixed
184 // While this seems to fix the issue, this should be fixed
185 // in CodeMirror proper.
185 // in CodeMirror proper.
186 var s = this.code_mirror.getValue();
186 var s = this.code_mirror.getValue();
187 if (s === '') this.code_mirror.setValue('.');
188 this.code_mirror.focus();
187 this.code_mirror.focus();
189 if (s === '') this.code_mirror.setValue('');
188 if (s === '') this.code_mirror.setValue('');
190 };
189 };
General Comments 0
You need to be logged in to leave comments. Login now