Commit c17a0051 authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 29708.

parent 860a8114
...@@ -171,6 +171,8 @@ ...@@ -171,6 +171,8 @@
this.txtSearch.on('keydown', null, 'search', _.bind(this.onKeyPress, this)); this.txtSearch.on('keydown', null, 'search', _.bind(this.onKeyPress, this));
this.txtReplace.on('keydown', null, 'replace', _.bind(this.onKeyPress, this)); this.txtReplace.on('keydown', null, 'replace', _.bind(this.onKeyPress, this));
this.on('animate:before', _.bind(this.focus, this));
return this; return this;
}, },
...@@ -189,10 +191,10 @@ ...@@ -189,10 +191,10 @@
focus: function() { focus: function() {
var me = this; var me = this;
_.delay(function(){ setTimeout(function(){
me.txtSearch.focus(); me.txtSearch.focus();
me.txtSearch.select(); me.txtSearch.select();
}, 300); }, 10);
}, },
onKeyPress: function(event) { onKeyPress: function(event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment