Fix: sometimes the cursor is not visible
This commit is contained in:
parent
fb917b3965
commit
afa975e4ec
2 changed files with 3 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ var Editor = function(renderer, doc) {
|
|||
});
|
||||
|
||||
this.setDocument(doc || new Document(""));
|
||||
this.focus();
|
||||
};
|
||||
|
||||
(function(){
|
||||
|
|
|
|||
|
|
@ -100,8 +100,9 @@ var TextInput = function(parentNode, host) {
|
|||
});
|
||||
|
||||
this.focus = function() {
|
||||
text.focus();
|
||||
host.onFocus();
|
||||
text.select();
|
||||
text.focus();
|
||||
};
|
||||
|
||||
this.blur = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue