From 7421012b601ca78fc8a96ae1bf03ff612ca168f9 2011-08-18 00:19:42 From: Brian E. Granger Date: 2011-08-18 00:19:42 Subject: [PATCH] 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. --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 7b367a6..79a8140 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/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(''); };