diff --git a/apps/presentationeditor/main/app/view/AnimationDialog.js b/apps/presentationeditor/main/app/view/AnimationDialog.js index 00f7f12252..331d99b99d 100644 --- a/apps/presentationeditor/main/app/view/AnimationDialog.js +++ b/apps/presentationeditor/main/app/view/AnimationDialog.js @@ -119,6 +119,7 @@ define([ tabindex: 1 }); this.lstEffectList.on('item:select', _.bind(this.onEffectListItem,this)); + this.lstEffectList.on('entervalue', _.bind(this.onPrimary, this)); // this.chPreview = new Common.UI.CheckBox({ // el : $('#animation-setpreview'), @@ -192,6 +193,11 @@ define([ this._handleInput(event.currentTarget.attributes['result'].value); }, + onPrimary: function() { + this._handleInput('ok'); + return false; + }, + _handleInput: function(state) { if (this.options.handler) { this.options.handler.call(this, state, this._state); diff --git a/apps/spreadsheeteditor/main/app/view/PageMarginsDialog.js b/apps/spreadsheeteditor/main/app/view/PageMarginsDialog.js index e7d52a8b3c..7b95b1655b 100644 --- a/apps/spreadsheeteditor/main/app/view/PageMarginsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/PageMarginsDialog.js @@ -181,6 +181,11 @@ define([ return this.spnTop; }, + onPrimary: function() { + this._handleInput('ok'); + return false; + }, + _handleInput: function(state) { if (this.options.handler) { if (state == 'ok') { diff --git a/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js b/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js index deac1fc52e..c96bc7959c 100644 --- a/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js +++ b/apps/spreadsheeteditor/main/app/view/PrintTitlesDialog.js @@ -206,6 +206,11 @@ define([ return true; }, + onPrimary: function() { + this._handleInput('ok'); + return false; + }, + _handleInput: function(state) { if (this.options.handler) { if (state == 'ok') {