@@ -97,7 +97,7 @@ CloudPebble.Editor = (function() {
9797 settings . extraKeys = { 'Ctrl-Space' : 'autocomplete' } ;
9898 }
9999 if ( ! is_js && USER_SETTINGS . autocomplete !== 0 ) {
100- settings . extraKeys [ 'Tab' ] = function ( ) {
100+ settings . extraKeys [ 'Tab' ] = function selectNextArgument ( ) {
101101 var marks = code_mirror . getAllMarks ( ) ;
102102 var cursor = code_mirror . getCursor ( ) ;
103103 var closest = null ;
@@ -130,7 +130,7 @@ CloudPebble.Editor = (function() {
130130 if ( USER_SETTINGS . use_spaces ) {
131131 var spaces = Array ( settings . indentUnit + 1 ) . join ( ' ' ) ;
132132 var oldTab = settings . extraKeys [ 'Tab' ] ;
133- settings . extraKeys [ 'Tab' ] = function ( cm ) {
133+ settings . extraKeys [ 'Tab' ] = function indentMoreOrSelectNextArgument ( cm ) {
134134 // If we already overrode tab, check that one.
135135 if ( oldTab ) {
136136 if ( oldTab ( cm ) !== CodeMirror . Pass ) {
@@ -180,10 +180,10 @@ CloudPebble.Editor = (function() {
180180 return CodeMirror . Pass ;
181181 } ;
182182 }
183- settings . extraKeys [ 'Cmd-/' ] = function ( cm ) {
183+ settings . extraKeys [ 'Cmd-/' ] = function toggleComment ( cm ) {
184184 CodeMirror . commands . toggleComment ( cm ) ;
185185 } ;
186- settings . extraKeys [ 'Ctrl-/' ] = function ( cm ) {
186+ settings . extraKeys [ 'Ctrl-/' ] = function toggleComment ( cm ) {
187187 CodeMirror . commands . toggleComment ( cm ) ;
188188 } ;
189189 if ( is_js ) {
@@ -227,10 +227,9 @@ CloudPebble.Editor = (function() {
227227
228228 var help_shortcut = / M a c / . test ( navigator . platform ) ? 'Shift-Cmd-Ctrl-/' : 'Shift-Ctrl-Alt-/' ;
229229
230- settings . extraKeys [ help_shortcut ] = function ( cm ) {
230+ settings . extraKeys [ help_shortcut ] = function lookupFunction ( cm ) {
231231 var pos = cm . cursorCoords ( ) ;
232232 var token = code_mirror . getTokenAt ( cm . getCursor ( ) ) ;
233-
234233 create_popover ( cm , token . string , pos . left , pos . top ) ;
235234 } ;
236235
@@ -733,7 +732,7 @@ CloudPebble.Editor = (function() {
733732 cm . showHint ( { hint : CloudPebble . Editor . Autocomplete . complete , completeSingle : false } ) ;
734733 } ;
735734 CodeMirror . commands . save = function ( cm ) {
736- cm . cloudpebble_save ( ) . catch ( alert ) ; ;
735+ cm . cloudpebble_save ( ) . catch ( alert ) ;
737736 } ;
738737 CodeMirror . commands . saveAll = function ( cm ) {
739738 save_all ( ) . catch ( alert ) ;
0 commit comments