From a100e0a15ff05b815a2af4579027474bcbecf665 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 26 Jul 2018 17:14:41 +0300 Subject: [PATCH] Fix Bug 37707, Bug 37706 --- apps/documenteditor/main/app/controller/Main.js | 6 +----- apps/presentationeditor/main/app/controller/Main.js | 6 +----- apps/spreadsheeteditor/main/app/controller/Main.js | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 5912878bd..3d8c86ae5 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -279,11 +279,7 @@ define([ Common.util.Shortcuts.delegateShortcuts({ shortcuts: { - 'command+s,ctrl+s': _.bind(function (e) { - e.preventDefault(); - e.stopPropagation(); - }, this), - 'command+p,ctrl+p': _.bind(function (e) { + 'command+s,ctrl+s,command+p,ctrl+p,command+k,ctrl+k,command+d,ctrl+d': _.bind(function (e) { e.preventDefault(); e.stopPropagation(); }, this) diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 585a7c954..99b17447f 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -265,11 +265,7 @@ define([ this.initNames(); Common.util.Shortcuts.delegateShortcuts({ shortcuts: { - 'command+s,ctrl+s': _.bind(function (e) { - e.preventDefault(); - e.stopPropagation(); - }, this), - 'command+p,ctrl+p': _.bind(function (e) { + 'command+s,ctrl+s,command+p,ctrl+p,command+k,ctrl+k,command+d,ctrl+d': _.bind(function (e) { e.preventDefault(); e.stopPropagation(); }, this) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 197344325..2b2b96c5c 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -269,11 +269,7 @@ define([ // this.recognizeBrowser(); Common.util.Shortcuts.delegateShortcuts({ shortcuts: { - 'command+s,ctrl+s': _.bind(function (e) { - e.preventDefault(); - e.stopPropagation(); - }, this), - 'command+p,ctrl+p': _.bind(function (e) { + 'command+s,ctrl+s,command+p,ctrl+p,command+k,ctrl+k,command+d,ctrl+d': _.bind(function (e) { e.preventDefault(); e.stopPropagation(); }, this)