Modifying CodeMirror focus hack to work better.

I had removed a text area focus event earlier today and that
broke the . key. We are still having problems with CodeMirror
elements gaining focus, but this seems to fix the issue.
This commit is contained in:
Brian E. Granger 2011-08-17 17:19:42 -07:00
parent cff986a539
commit b5b4cf260f

View File

@ -184,7 +184,6 @@ var IPython = (function (IPython) {
// While this seems to fix the issue, this should be fixed
// in CodeMirror proper.
var s = this.code_mirror.getValue();
if (s === '') this.code_mirror.setValue('.');
this.code_mirror.focus();
if (s === '') this.code_mirror.setValue('');
};