Search Issue Tracker
Active
Votes
0
Found in
2022.2
Issue ID
1423845
Regression
No
[WebGL] Unity canvas containing WebGL player unable to gain focus when clicking or tabbing into it
Reproduction steps:
1. Open and run the reproduction project (to be attached in comments).
2. Build and run, targeting WebGL.
3. Try clicking on the canvas and inputting text.
Expected result: Clicking on the canvas puts it in focus, and allows input like keyboard to be captured.
Actual result: The canvas never gets focus, and all keyboard input is ignored.
Reproducible with: 2022.2.0a12
Could not test with: Did not test with older versions - should be tested.
Notes:
- The bug only occurs when WebGLInput.captureAllKeyboardInput is set to false, otherwise the global handlers capture the input.
- This seems a direct result of the canvas not having a `tabindex` in the templates. We could test if the canvas has the property defined, and attach one with the value of -1 if not.
Comments (1)
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
- Additional settings dropdown in Terrain Overlay is not grayed out for painting modes with no extra settings
- Inconsistent Terrain brush Opacity values between Scene view and Inspector
- [Usability] No separated opacity for the different types of Terrain brushes
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
bruceweir1
Oct 04, 2023 11:22
Confirmed. Can be fixed by adding "tabindex=-1" to the canvas that contains the Unity WebGL application.