I haven't done this myself, but I think the contentEditable=true attribute
is what you'd after - that would allow you to enable text input in the
canvas element itself. See

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_Editable
http://html5demos.com/contenteditable
http://stackoverflow.com/questions/8956567/how-do-i-make-an-editable-div-look-like-a-text-field

Does that help?


2014-05-16 11:26 GMT+03:00 asnapper <[email protected]>:

> I successfully ported an OGLES2 application with emscripten to the web,
> which now works fine in desktop versions of Firefox and Chrome.
> But now i'm struggling getting it to work properly on mobile devices, or
> to be more specific, Firefox for Android.
>
> What approach others take to use the on-screen keyboard on mobile devices?
> I started to experiment with html input boxes, which I placed underneath
> the canvas. This approach seems a bit like a bad hack to me. Are there
> better solutions to this?
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to