Merge pull request #3571 from damianavila/split_shortcut

Added `^M -` as shorcut to split cell.
Min RK 13 years ago
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…
Cancel
Save