Browse Source

fix key shortcuts not working in scene editors

trethaller 6 years ago
parent
commit
f41de09f0d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/comp/Scene.hx

+ 1 - 0
hide/comp/Scene.hx

@@ -99,6 +99,7 @@ class Scene extends Component implements h3d.IDrawable {
 	function delayedInit() {
 	function delayedInit() {
 		canvas.id = "webgl";
 		canvas.id = "webgl";
 		window = @:privateAccess new hxd.Window(canvas);
 		window = @:privateAccess new hxd.Window(canvas);
+		window.propagateKeyEvents = true;
 		window.setCurrent();
 		window.setCurrent();
 		engine = new h3d.Engine();
 		engine = new h3d.Engine();
 		@:privateAccess engine.resCache.set(Scene, this);
 		@:privateAccess engine.resCache.set(Scene, this);