mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Shift-Enter only selects the next cell if it is a CodeCell.
This commit is contained in:
parent
f7a3abb023
commit
1cae7230d9
@ -123,7 +123,12 @@ Notebook.prototype.bind_events = function () {
|
||||
if (cell_index === (that.ncells()-1)) {
|
||||
that.insert_code_cell_after();
|
||||
} else {
|
||||
that.select(cell_index+1);
|
||||
// Select the next cell if it is a CodeCell, but not
|
||||
// if it is a TextCell.
|
||||
var next_cell = that.cells()[cell_index+1];
|
||||
if (!(next_cell instanceof TextCell)) {
|
||||
that.select(cell_index+1);
|
||||
};
|
||||
};
|
||||
}
|
||||
} else if (event.which == 9) {
|
||||
|
Loading…
Reference in New Issue
Block a user