Search Issue Tracker
Fixed in 5.2.0
Votes
0
Found in
5.1.0f2
Issue ID
699504
Regression
Yes
doNotCaptureKeyboard not working in WebGL
1. What happened
WebGL project build with Unity 5.1.0f2 with HTML content which require keyboard input is no longer working. In earlier version 5.0.1 setting parameter 'doNotCaptureKeyboard : true' to Module definition enabled keyboard input to be enabled on HTML controls running on the same page.
2. How we can reproduce it using the example you attached
Case 1:
- build included KeyboardFocus project with Unity 5.0.1 (an empty scene)
- add '<input type="text" value="" />' field to the HTML page
- add 'doNotCaptureKeyboard : true' parameter to the Module definition
- run the build in browser
- try input text to input field
=> text displayed correctly
Case 2:
- build included KeyboardFocus project with Unity 5.1.0 (an empty scene)
- add '<input type="text" value="" />' field to the HTML page
- add 'doNotCaptureKeyboard : true' parameter to the Module definition
- run the build in browser
- try input text to input field
=> BUG: cannot input text to the input field!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
sophieedwards100
May 17, 2020 09:07
I have seen your attached images of the WebGL project build and I think that it is because of the usage of the previous version. I always prefer visiting https://writeessaysonline.com/is-edubirdie-legit-three-different-perspectives/ source to read reviews about edubirdie. It is also possible that you are making some sort of mistake while completing the procedure.
EleonoreHyatt34
Aug 24, 2019 12:05
I am using the old version of the unity and the WebGL I think was the best software they have made till yet. The facilities they provided in this http://teacherhabits.com/10-things-every-new-teacher-should-know/ are far better than the latest model of 2019.
lucian.galiotto
Jul 20, 2015 18:48
I'm standing in Unity 5.0.1, because this problem is critical. I need to use input in HTML pages. There is a lot to fix this problem?
dark_end
Jun 24, 2015 15:15
I can confirm this since I updated from 5.0.1 to 5.1.1