From fe48b525d176440d7a779318d7ec10bdb959c8b3 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 2f2e996ce..afb247f2f 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 50fdfe928..be7e1fffb 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',