← Back to team overview

ubuntu-phone team mailing list archive

Triggering on-screen keyboard with HTML5 SDK

 

Hi all,

I'm working on a crossword client using the HTML5 SDK. Obviously, being able to enter letters is important, so the on-screen keyboard should be visible whenever the user is working on a puzzle. But I can't figure out how to trigger it to show up. Is there some Javascript to call or something in Cordova?

On Google+, Adnane Belmadiaf suggested making a text input and setting the focus on that. In testing with the browser in an emulator, this didn't work; the input would have focus, but the OSK would not appear.

For extra credit,
- Do I have to do anything to prevent the OSK when there's a physical keyboard?
- Can I turn on caps lock for the OSK?

Thanks,
Robert





Follow ups