mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Merge pull request #3571 from damianavila/split_shortcut
Added `^M -` as shorcut to split cell.
This commit is contained in:
commit
51f4b08174
@ -319,6 +319,11 @@ var IPython = (function (IPython) {
|
||||
that.undelete();
|
||||
that.control_key_active = false;
|
||||
return false;
|
||||
} else if (event.which === 189 && that.control_key_active) {
|
||||
// Split cell = -
|
||||
that.split_cell();
|
||||
that.control_key_active = false;
|
||||
return false;
|
||||
} else if (that.control_key_active) {
|
||||
that.control_key_active = false;
|
||||
return true;
|
||||
|
@ -32,6 +32,7 @@ var IPython = (function (IPython) {
|
||||
{key: 'Ctrl-m v', help: 'paste cell'},
|
||||
{key: 'Ctrl-m d', help: 'delete cell'},
|
||||
{key: 'Ctrl-m z', help: 'undo last cell deletion'},
|
||||
{key: 'Ctrl-m -', help: 'split cell'},
|
||||
{key: 'Ctrl-m a', help: 'insert cell above'},
|
||||
{key: 'Ctrl-m b', help: 'insert cell below'},
|
||||
{key: 'Ctrl-m o', help: 'toggle output'},
|
||||
|
Loading…
Reference in New Issue
Block a user