Permalink
Browse files

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.
  • Loading branch information...
1 parent eb895bf commit 7421012b601ca78fc8a96ae1bf03ff612ca168f9 @ellisonbg ellisonbg committed Aug 18, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 IPython/frontend/html/notebook/static/js/codecell.js
@@ -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('');
};

0 comments on commit 7421012

Please sign in to comment.