File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,18 @@ function(
76
76
// default CodeMirror options
77
77
Editor . default_codemirror_options = {
78
78
extraKeys : {
79
- "Tab" : "indentMore" ,
79
+ "Cmd-Right" : "goLineRight" ,
80
+ "End" : "goLineRight" ,
81
+ "Cmd-Left" : "goLineLeft" ,
82
+ "Tab" : "indentMore" ,
83
+ "Shift-Tab" : "indentLess" ,
84
+ "Cmd-/" : "toggleComment" ,
85
+ "Ctrl-/" : "toggleComment" ,
80
86
} ,
81
87
indentUnit : 4 ,
82
88
theme : "ipython" ,
83
89
lineNumbers : true ,
84
- lineWrapping : true ,
90
+ lineWrapping : true
85
91
} ;
86
92
87
93
Editor . prototype . load = function ( ) {
@@ -170,7 +176,7 @@ function(
170
176
Editor : {
171
177
file_extension_modes : update_mode_map ,
172
178
}
173
- } )
179
+ } ) ;
174
180
} ;
175
181
176
182
Editor . prototype . get_filename = function ( ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ define([
125
125
} ) ;
126
126
127
127
this . events . on ( "config_changed.Editor" , function ( ) {
128
- var keyMap = editor . codemirror . getOption ( 'keyMap' ) || " default" ;
128
+ var keyMap = editor . codemirror . getOption ( 'keyMap' ) || ' default' ;
129
129
that . element . find ( ".selected-keymap" ) . removeClass ( "selected-keymap" ) ;
130
130
that . element . find ( "#menu-keymap-" + keyMap ) . addClass ( "selected-keymap" ) ;
131
131
} ) ;
Original file line number Diff line number Diff line change @@ -134,8 +134,6 @@ define([
134
134
"Cmd-Left" : "goLineLeft" ,
135
135
"Tab" : "indentMore" ,
136
136
"Shift-Tab" : "indentLess" ,
137
- // "Cmd-Alt-[" : "indentAuto",
138
- // "Ctrl-Alt-[" : "indentAuto",
139
137
"Cmd-/" : "toggleComment" ,
140
138
"Ctrl-/" : "toggleComment" ,
141
139
}
You can’t perform that action at this time.
0 commit comments