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

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!

Comments (4)

  1. 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?

  2. dark_end

    Jun 24, 2015 15:15

    I can confirm this since I updated from 5.0.1 to 5.1.1

Add comment

Log in to post comment