mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
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:
parent
cff986a539
commit
b5b4cf260f
@ -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('');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user