kou-yeung / WebGLInput

IME for Unity WebGL
MIT License
770 stars 111 forks source link

Cannot select a section of text or place caret #165

Open ForzaBo opened 3 months ago

ForzaBo commented 3 months ago

Maybe I am missing something, but with this component added to an input field, it is no longer possible to position the caret within the input text; instead all clicks within the field result in the entire slug of input text being selected. (It is possible to reposition the caret with the arrow keys, but that it very non-intuitive). Worse, it is not possible to select a section of the input text (to, say, delete it or copy to the clipboard) -- again, it's all or nothing.

My project is on 2019.4 LTS. I am using the latest version of WebGLInput as of this writing...

Thanks

kou-yeung commented 3 months ago

memo : have a ext for sync the position ( i do not tried ) https://github.com/mariommoreno/WebGLInput-TMP_InputFieldExt

or you can try switch the "showHtmlElement" on to show html element on canvas. https://github.com/kou-yeung/WebGLInput/blob/master/Assets/WebGLSupport/WebGLInput/WebGLInput.cs#L130C21-L130C36

BuKuSiShen commented 3 months ago

I also meet this Issue,need stronger solution.Thank you

BuKuSiShen commented 3 months ago

I also meet this Issue,need stronger solution.Thank you

meta-winster commented 1 month ago

I'm having the same issue -- clicking the text input field highlights all text. You're completely unable to select a small portion of the text input field to copy :(

enigmablue commented 4 weeks ago

any solution for this? by any chance.

will try https://github.com/mariommoreno/WebGLInput-TMP_InputFieldExt