From 1085d62805acfdc47431e56e068d082be4f54807 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 21 Jun 2016 12:10:37 +0300 Subject: [PATCH] =?UTF-8?q?[SSE]=20=D0=91=D0=B0=D0=B3=20=D1=81=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=D0=BC=20=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=8E=20=D0=B0=D0=B2=D1=82=D0=BE=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=20(=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=BB?= =?UTF-8?q?=D0=BE=D1=81=D1=8C=20=D0=BF=D0=BE=D0=B4=D0=BC=D0=B5=D0=BD=D1=8E?= =?UTF-8?q?).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/spreadsheeteditor/main/app/controller/Main.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index ab7f3c38b..ab8840d6a 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -150,15 +150,18 @@ define([ // NOTE: fix double click mozilla copy-paste - if (e && e.target && e.target.id && (e.target.id === 'clipboard-helper-text' || e.target.id === 'area_id')) { + if (e && e.target && (e.target.id === 'clipboard-helper-text')) { me.api.asc_enableKeyEvents(true); return; } if (this.isAppDisabled === true) return; - me.api.asc_enableKeyEvents(false); - if (/msg-reply/.test(e.target.className)) - me.dontCloseDummyComment = true; + + if (e && e.target && !/area_id/.test(e.target.id)) { + me.api.asc_enableKeyEvents(false); + if (/msg-reply/.test(e.target.className)) + me.dontCloseDummyComment = true; + } }); $("#editor_sdk").focus(function (e) { @@ -169,7 +172,7 @@ define([ $(document.body).on('blur', 'input, textarea', function(e) { if (this.isAppDisabled === true) return; - if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible())) { + if (!me.isModalShowed && !(me.loadMask && me.loadMask.isVisible()) && !/area_id/.test(e.target.id)) { me.api.asc_enableKeyEvents(true); if (/msg-reply/.test(e.target.className)) me.dontCloseDummyComment = false;