gown.js icon indicating copy to clipboard operation
gown.js copied to clipboard

On Mobile devices, TextInput doesn't work

Open holywyvern opened this issue 7 years ago • 1 comments

When you are using a TextInput element on a mobile device, the soft keyboard doesn't appear.

I was looking for a solution to force the keyboard out, but it seems the only way to have a keyboard button in our html5 game is using a DOM input over the canvas, or not so nice solutions as "prompt"

holywyvern avatar Feb 04 '18 04:02 holywyvern

This is a known issue, I started to create a keyboard-wrapper solution but although I got some features in there it did not do all the things that a DOM input/textarea provides (like line breaks). It took quite some time and because I am not working on gown anymore I fear that this will never be solved... anyway, if you like to hacke your own solution you can take a look at the keyboard_refactoring-branch for inspiration, especially those files: https://github.com/GreyRook/gown.js/blob/keyboard_refactoring/src/utils/DOMInputWrapper.js https://github.com/GreyRook/gown.js/blob/keyboard_refactoring/src/utils/KeyboardInputWrapper.js

brean avatar Feb 04 '18 12:02 brean