this timeout does more harm than it helps.

Prevents iOS keyboard from opening and has problems in FF4
This commit is contained in:
Fabian Jakobs 2011-01-23 18:29:57 +01:00
commit 7d919c0516

View file

@ -57,7 +57,7 @@ var Editor =function(renderer, session) {
this.keyBinding = new KeyBinding(this);
var self = this;
event.addListener(container, "mousedown", function(e) {
setTimeout(function() {self.focus();});
self.focus();
return event.preventDefault(e);
});
event.addListener(container, "selectstart", function(e) {