From c17a0051172b9ddab66cd9487df61deccf789a12 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 7 Nov 2016 11:45:55 +0300 Subject: [PATCH] Fix Bug 29708. --- apps/common/main/lib/view/SearchDialog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/SearchDialog.js b/apps/common/main/lib/view/SearchDialog.js index 9a6d3c3d1..4eedef793 100644 --- a/apps/common/main/lib/view/SearchDialog.js +++ b/apps/common/main/lib/view/SearchDialog.js @@ -171,6 +171,8 @@ this.txtSearch.on('keydown', null, 'search', _.bind(this.onKeyPress, this)); this.txtReplace.on('keydown', null, 'replace', _.bind(this.onKeyPress, this)); + this.on('animate:before', _.bind(this.focus, this)); + return this; }, @@ -189,10 +191,10 @@ focus: function() { var me = this; - _.delay(function(){ + setTimeout(function(){ me.txtSearch.focus(); me.txtSearch.select(); - }, 300); + }, 10); }, onKeyPress: function(event) {