add ctrl-alt-[ shortcut for indentAuto

and move common cell commands to Cell base config
This commit is contained in:
Min RK 2016-01-15 22:19:35 +01:00
parent a3e074c3a7
commit 1c8437a123
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,
}