Is there anyway to control virtual keyboard? RRS feed

  • Question

  • Hi,

    I want call out the virtual keyboard by code.

    I tried to call focus() on text box, but I found it required an extra tab on the text box to bring up the virtual keyboard.

    Is is possible to control virtual keyboard in JavaScript Metro APP?

    Thanks in advanced.



    woodhead is as woodhead does

    Saturday, May 19, 2012 3:14 AM


All replies

  • Hi Alex,

    No, the keyboard is under the control of the user.


    Jeff Sanders (MSFT)

    Monday, May 21, 2012 1:03 PM
  • And the keys that are displayed in the keyboard cannot be customized by the app? Like to show only numbers for certain input fields?
    Monday, May 21, 2012 9:04 PM
  • Hi Jeff,

    Thanks for your answer.

    woodhead is as woodhead does

    Tuesday, May 22, 2012 12:30 AM
  • Hi Jeff,

    Just to double check. There is absolutely no way that the app can focus a text box and have the user ready to enter text?

    The user has to always manually tap on the text box to bring up the keyboard... so effectively he has to tap in every text box?

    This seems very awkward to me.



    Tuesday, May 22, 2012 4:18 AM
  • Hi Patrick,


    Once the user has entered a text box, the keyboard will be envoked, if you tab using the keyboard or tap into a text box the keyboard remains up.


    Jeff Sanders (MSFT)

    Tuesday, May 22, 2012 12:37 PM
  • Did I say that Phil? :-)

    The keyboard will configure based on the input type.

    For example try this: <input type=number> you will see the soft keyboard brings up the number keyboard.

    url will add the / and .com

    email will add the @

    search will give you a search button

    telephone will be number...

    see this page: http://ie.microsoft.com/testdrive/HTML5/Forms/Default.html


    Jeff Sanders (MSFT)

    Tuesday, May 22, 2012 1:19 PM
  • Great Jeff, will use that definitely in our app... once we got it working with the current RP build
    Tuesday, May 22, 2012 1:57 PM