HTML & Keyboard

Monkey Forums/Monkey Programming/HTML & Keyboard

Yeshu777(Posted 2015) [#1]
Hi,

Has anyone found a nice simple method of bringing up the 'virtual' keyboard on devices using the HTML target?

I've asked on the HTML forum, but no response.

Yeshu777


Pharmhaus(Posted 2015) [#2]
Well even if it sounds shitty you might be better off writing yourself a virtual keyboard.
The problem is that you need some input elements which trigger the keyboard (via event if I remeber correctly).
This would be not of a big problem but since you game is run in a canvas there are no such elements.
Only work around I can think of would be placing a textfield or whatever behind the canvas (native js) and use CSS to fix things, but that would be lot of native tinkering I guess.


Yeshu777(Posted 2015) [#3]
Hi,

After much experimentation with HTML / JS this is what I did, which gave me the added benefit of limiting what characters could be entered.

See here

http://www.monkey-x.com/Community/posts.php?topic=10149

Yeshu777