Merge pull request #963 from minrk/indentAutoShortcut

add ctrl-alt-[ shortcut for indentAuto
This commit is contained in:
Matthias Bussonnier 2016-02-08 11:25:01 -08:00
commit 7e6b50815e
3 changed files with 9 additions and 8 deletions

View File

@ -114,9 +114,15 @@ define([
readOnly: false,
theme: "default",
extraKeys: {
"Cmd-Right":"goLineRight",
"End":"goLineRight",
"Cmd-Left":"goLineLeft"
"Cmd-Right": "goLineRight",
"End": "goLineRight",
"Cmd-Left": "goLineLeft",
"Tab": "indentMore",
"Shift-Tab" : "indentLess",
"Cmd-Alt-[" : "indentAuto",
"Ctrl-Alt-[" : "indentAuto",
"Cmd-/" : "toggleComment",
"Ctrl-/" : "toggleComment",
}
}
};

View File

@ -125,11 +125,7 @@ define([
CodeCell.options_default = {
cm_config : {
extraKeys: {
"Tab" : "indentMore",
"Shift-Tab" : "indentLess",
"Backspace" : "delSpaceToPrevTabStop",
"Cmd-/" : "toggleComment",
"Ctrl-/" : "toggleComment"
},
mode: 'text',
theme: 'ipython',

View File

@ -70,7 +70,6 @@ define([
TextCell.options_default = {
cm_config : {
extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess"},
mode: 'htmlmixed',
lineWrapping : true,
}