Просмотр исходного кода

Fix error on blur with no webgl element initialized

trethaller 6 лет назад
Родитель
Сommit
4ee42b43d2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      hide/Ide.hx

+ 1 - 1
hide/Ide.hx

@@ -121,7 +121,7 @@ class Ide {
 					return;
 					return;
 			window.close(true);
 			window.close(true);
 		});
 		});
-		window.on("blur", function() { hxd.Key.initialize(); });
+		window.on("blur", function() { if( h3d.Engine.getCurrent() != null && !hasReloaded ) hxd.Key.initialize(); });
 
 
 		// handle commandline parameters
 		// handle commandline parameters
 		nw.App.on("open", function(cmd) {
 		nw.App.on("open", function(cmd) {