Fix Bug 29708.
This commit is contained in:
parent
860a8114ec
commit
c17a005117
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue