Improve text input focus handling for Firefox

This commit is contained in:
Joshua Granick
2015-08-13 09:31:33 -07:00
parent 9a089976c1
commit 464a3382ae

View File

@@ -1,6 +1,7 @@
package lime._backend.html5;
import haxe.Timer;
import js.html.CanvasElement;
import js.html.DivElement;
#if (haxe_ver >= "3.2")
@@ -192,7 +193,7 @@ class HTML5Window {
if (enableTextEvents) {
textInput.focus ();
Timer.delay (function () { textInput.focus (); }, 20);
}