Merge pull request #3571 from damianavila/split_shortcut

Added `^M -` as shorcut to split cell.
This commit is contained in:
Min RK 2013-07-15 11:21:17 -07:00
commit 51f4b08174
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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'},