-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
on tab: insert '\t' instead of changing focus #38
Comments
thank you for share. you can add a flag to WebGLInput.cs to switch "change focus" or "\t". |
ok :) if you update the code with this functionality, I will replace my fixes with yours :) |
release a new unitypackage to switch tab function Add "WEBGLINPUT_TAB" to Scripting Define Symbols in PlayerSettings. i want the plugins keep simply. so take this solution :) |
thank you :) will try it as soon as I can :) |
i just tried it and works perfectly :) will let you know if there are any bugs I find :) |
Hi, instead of using tab to cycle between input fields, I wanted it to insert '\t'. I was able to edit the code a bit to do this and wanted to share it here. Sorry if this is the wrong place to share this. I'm new to git and am still figuring things out.
The problem with this solution is that you can't switch between the "insert \t" and "cycle input fields" functionality easily without hard editing the code. Part of the solution was changing the callback of a tab keydown event from OnTab to OnValueChanged. I don't know if you might have a more elegant solution where a user can choose which functionality they want in the Unity Inspector.
Great work btw! I don't understand most of it because I don't know javascript. You might have a better and less buggy idea on how to do the functionality I coded.
Changes:
In WebGLInput.jslib:
In WebGLInput.cs, WebGLInputPlugin method declarations
In WebGLInput.cs OnSelect():
The text was updated successfully, but these errors were encountered: