Plugin conflict #2
Description
Hello,
I'm using your plugin in one of my project, it work well except when I try to use it in correlation with another one: WebGLInput
Since the use of IME cause to loose some feature of Text Mesh Pro like mouse selection. In my project I want to be able to copy/paste without the need of IME (for latin language).
So I use both your plugin and WebGLInput.
I made a simple project based on the source code of the other plugin and I added your plugin.
The problem seems to be caused by WebGLCopyAndPaste.jslib at line 56.
Probably in conflict with the code of other plugin: UnityEngine.WebGLInput.captureAllKeyboardInput = true;
in WebGLInput.cs at line 235 and 243
The bug cause two problems:
- UnityEngine.WebGLInput.captureAllKeyboardInput = true; seems to cause side effect like described here
To reproduce this in the sample, select the input at top right, deselect it then select it again. Now if you press any key it will be printed twice in the input field. Also each time you unselect and select again the inputfield it will write the key once more when you press it. - It seems that normal character inputs are not catched by the html inputfield but is catched by inputfield in Unity. The IME seems to work properly if not in ASCII mode.
When I comment all the code in WebGLCopyAndPaste.jslib from line 37 to line 60 the problems seems to be solved. Also remplacing only the line 56 from return fn.apply(this, hArgs);
to return fn.apply(this, args);
solve it too.
Of course I don't understand what this code do exactly so just replacing this line don't seems to be a wise solution!
Do you have an idea on how to fix this properly?