diff --git a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js index 72979a869..3ea6f925c 100644 --- a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js @@ -80,6 +80,7 @@ define([ return (n10) this.rangeList.selectByIndex(0); + this.rangeList.scroller.update({alwaysVisibleY: true}); + + _.delay(function () { + me.rangeList.cmpEl.find('.listview').focus(); + }, 100, this); } }, @@ -116,7 +122,9 @@ define([ }, onPrimary: function() { - return true; + this.handler && this.handler.call(this, 'ok', this.getSettings()); + this.close(); + return false; }, onDlgBtnClick: function(event) {