diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index b88fd82a5..ae74814d9 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -161,6 +161,14 @@ define([ this.leftMenu.setMode(mode); this.leftMenu.getMenu('file').setMode(mode); + if (!mode.isEdit) // TODO: unlock 'save as', 'open file menu' for 'view' mode + Common.util.Shortcuts.removeShortcuts({ + shortcuts: { + 'command+shift+s,ctrl+shift+s': _.bind(this.onShortcut, this, 'save'), + 'alt+f': _.bind(this.onShortcut, this, 'file') + } + }); + return this; }, diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index d81d58843..989701153 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -154,6 +154,14 @@ define([ this.leftMenu.setMode(mode); this.leftMenu.getMenu('file').setMode(mode); + if (!mode.isEdit) // TODO: unlock 'save as', 'open file menu' for 'view' mode + Common.util.Shortcuts.removeShortcuts({ + shortcuts: { + 'command+shift+s,ctrl+shift+s': _.bind(this.onShortcut, this, 'save'), + 'alt+f': _.bind(this.onShortcut, this, 'file') + } + }); + return this; }, diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index eefc44585..b75ed230b 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -162,6 +162,14 @@ define([ this.leftMenu.setMode(mode); this.leftMenu.getMenu('file').setMode(mode); + if (!mode.isEdit) // TODO: unlock 'save as', 'open file menu' for 'view' mode + Common.util.Shortcuts.removeShortcuts({ + shortcuts: { + 'command+shift+s,ctrl+shift+s': _.bind(this.onShortcut, this, 'save'), + 'alt+f': _.bind(this.onShortcut, this, 'file') + } + }); + return this; },