mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
alt+enter should always insert below
This commit is contained in:
parent
4c7ce61011
commit
bcd4209375
@ -1443,11 +1443,7 @@ var IPython = (function (IPython) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Only insert a new cell, if we ended up in an already populated cell
|
||||
var next_text = this.get_cell(cell_index+1).get_text();
|
||||
if (/\S/.test(next_text) === true) {
|
||||
this.insert_cell_below('code');
|
||||
}
|
||||
this.insert_cell_below('code');
|
||||
this.select(cell_index+1);
|
||||
this.edit_mode();
|
||||
this.set_dirty(true);
|
||||
|
Loading…
Reference in New Issue
Block a user