From c181f2b9fb975e24d1eca034a963dd549eeee820 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 21 Jun 2017 12:51:14 +0300 Subject: [PATCH] [SSE] Close dialogs by enter (bug with row height dialog: deleted cell value, when dialog was closed by enter). --- apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js | 3 ++- apps/spreadsheeteditor/main/app/view/SetValueDialog.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js index 2f2e996cec..afb247f2f3 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js @@ -317,7 +317,8 @@ define([ }, onPrimary: function() { - return true; + this.onDlgBtnClick('ok'); + return false; }, onNegativeSelect: function(combo, record) { diff --git a/apps/spreadsheeteditor/main/app/view/SetValueDialog.js b/apps/spreadsheeteditor/main/app/view/SetValueDialog.js index 50fdfe9289..be7e1fffb5 100644 --- a/apps/spreadsheeteditor/main/app/view/SetValueDialog.js +++ b/apps/spreadsheeteditor/main/app/view/SetValueDialog.js @@ -133,6 +133,7 @@ define([ onPrimary: function() { this._handleInput('ok'); + return false; }, cancelButtonText: 'Cancel',