@@ -835,7 +835,7 @@ CloudPebble.Editor = (function() {
835835 var codemirror_commands = [
836836 { command : 'indentAuto' , refocus : true } ,
837837 { command : 'toggleComment' , hint : 'Cmd-/ or Ctrl-/' , refocus : true } ,
838- 'find' , 'replace' , 'indentMore' , 'indentLess'
838+ 'find' , 'replace' , 'indentMore' , 'indentLess' , 'save' , 'saveAll'
839839 ] ;
840840
841841 _ . each ( codemirror_commands , function ( entry ) {
@@ -848,26 +848,10 @@ CloudPebble.Editor = (function() {
848848 local_commands [ name ] . hint = ! ! entry . hint ? entry . hint : CloudPebble . GlobalShortcuts . GetShortcutForCommand ( command ) ;
849849 } ) ;
850850
851- // local_commands[gettext('Auto Indent')] = function() {
852- // current_editor.execCommand('indentAuto');
853- // current_editor.focus();
854- // };
855- // local_commands[gettext('Auto Indent')].hint = CloudPebble.GlobalShortcuts.GetShortcutForCommand('indentAuto');
856- // local_commands[gettext('Find')] = function() {
857- // current_editor.execCommand('find');
858- // };
859- // local_commands[gettext('Find')].hint = CloudPebble.GlobalShortcuts.GetShortcutForCommand('find');
860-
861-
862851 CloudPebble . FuzzyPrompt . AddCommands ( gettext ( 'File' ) , local_commands , function ( ) {
863852 return ( ! ! current_editor ) ;
864853 } ) ;
865854
866- CloudPebble . GlobalShortcuts . SetShortcutHandlers ( {
867- save : function ( ) {
868- save ( ) . catch ( alert ) ;
869- }
870- } ) ;
871855
872856 CloudPebble . FuzzyPrompt . AddCommands ( gettext ( 'Actions' ) , global_commands ) ;
873857
0 commit comments