← Back to team overview

ubuntu-phone team mailing list archive

Re: Triggering on-screen keyboard with HTML5 SDK

 

While a programmatic solution might be handy in the meantime, can you have
a text field that can be the receiver for the user's input & with which the
user could trigger the keyboard to popup? you could track down the onchange
events & pick up the currently entered "word"?


On Fri, Mar 21, 2014 at 7:16 PM, Robert Schroll <rschroll@xxxxxxxxx> wrote:

> 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
>
>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References