Explorar el Código

Make sure Keys are initialized on correct window, fixes issues where Key events would not work on newly opened tabs

trethaller hace 4 años
padre
commit
ce76e32c70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hide/comp/Scene.hx

+ 1 - 1
hide/comp/Scene.hx

@@ -128,9 +128,9 @@ class Scene extends Component implements h3d.IDrawable {
 			new Element(canvas).on("resize", function() {
 			new Element(canvas).on("resize", function() {
 				@:privateAccess window.checkResize();
 				@:privateAccess window.checkResize();
 			});
 			});
-			hxd.Key.initialize();
 			engine.setCurrent();
 			engine.setCurrent();
 			window.setCurrent();
 			window.setCurrent();
+			hxd.Key.initialize();
 			s2d = new h2d.Scene();
 			s2d = new h2d.Scene();
 			if (chunkifyS3D) {
 			if (chunkifyS3D) {
 				s3d = new hide.tools.ChunkedScene();
 				s3d = new hide.tools.ChunkedScene();