-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update suggestion for Input Keyboard problem #34
Comments
Okay, I'll post a version later |
Meqn
added a commit
that referenced
this issue
May 22, 2024
Sorry, I just saw your reply. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to suggest a small update.
Unity's canvas captures all the keyboard input that comes in. No longer being able to interact with the rest of the applioation.
To get around this problem in the Unity project you need to make a small change:
#if !UNITY_EDITOR && UNITY_WEBGL WebGLInput.captureAllKeyboardInput = false; #endif
This causes Unity to no longer capture all input once the focus is lost, however, you can no longer reassign it.
To solve this problem it is nesessary to add the tabindex attribute to the canvas.
Then the library should directly generate the canvas with the attribute
<canvas id="unity-canvas-1" style="width: 100%; height: 100%; cursor: default;" width="1689" height="356" tabindex="1"></canvas>
The text was updated successfully, but these errors were encountered: