Fix: sometimes the cursor is not visible

This commit is contained in:
Fabian Jakobs 2010-09-27 09:38:44 +02:00
commit afa975e4ec
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,7 @@ var Editor = function(renderer, doc) {
});
this.setDocument(doc || new Document(""));
this.focus();
};
(function(){

View file

@ -100,8 +100,9 @@ var TextInput = function(parentNode, host) {
});
this.focus = function() {
text.focus();
host.onFocus();
text.select();
text.focus();
};
this.blur = function() {