textinput fixes for IE

This commit is contained in:
Fabian Jakobs 2011-08-16 11:48:40 +02:00
commit 573f532a07
2 changed files with 15 additions and 12 deletions

View file

@ -263,13 +263,10 @@ var Editor =function(renderer, session) {
// Safari needs the timeout
// iOS and Firefox need it called immediately
// to be on the save side we do both
// except for IE
var _self = this;
if (!useragent.isIE) {
setTimeout(function() {
_self.textInput.focus();
});
}
setTimeout(function() {
_self.textInput.focus();
});
this.textInput.focus();
};