Search Issue Tracker

Fixed in 5.2.0

Votes

0

Found in

5.1.2p1

Issue ID

714579

Regression

No

WebGL requires additional code to capture keyboard input properly in an iframe

WebGL

-

-e: see above. since it is a fairly common use case with sites like kongregate it might be nice to add the workaround or maybe add it to the docs

-repro:
--build attached scene
--copy attached indexiframe.html into build folder
--start indexiframe.html
--try typing when it finished loading
--notice you see nothing typed
--add the following snippet to the index:
<script>
window.onload = function() { window.focus(); }
</script>
--load indexiframe again
--try typing when it finished loading
--notice you see stuff being typed in the scene

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.