Change hotkeys

Jonathan Frederic 10 years ago
parent 64c93843a8
commit d934ac114c

@ -169,9 +169,10 @@ define([
if (!that.selected) {
that.events.trigger('select.Cell', {'cell':that});
}
// Ctrl-click should mark the c ell.
if (event.ctrlKey) {
// Cmdtrl-click should mark the cell.
var isMac = navigator.platform.slice(0, 3).toLowerCase() === 'mac';
if ((!isMac && event.ctrlKey) || (isMac && event.metaKey)) {
that.marked = !that.marked;
}
});

@ -93,7 +93,7 @@ define([
'enter' : 'ipython.enter-edit-mode',
'space' : 'ipython.scroll-down',
'down' : 'ipython.select-next-cell',
'cmdtrl-space' : 'ipython.toggle-marks',
'ctrl-space' : 'ipython.toggle-marks',
'i,i' : 'ipython.interrupt-kernel',
'0,0' : 'ipython.restart-kernel',
'd,d' : 'ipython.delete-cell',

Loading…
Cancel
Save