Answered by:
Is there anyway to control virtual keyboard?

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.
cheers
Alex
woodhead is as woodhead does
- Changed type Jeff SandersMicrosoft employee, Moderator Monday, May 21, 2012 1:03 PM
Saturday, May 19, 2012 3:14 AM
Answers
-
Hi Alex,
No, the keyboard is under the control of the user.
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, May 21, 2012 1:05 PM
- Marked as answer by Alex ZS Tuesday, May 22, 2012 12:29 AM
Monday, May 21, 2012 1:03 PMModerator -
Hi Patrick,
No...
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
Jeff Sanders (MSFT)
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 12:37 PM
Tuesday, May 22, 2012 12:37 PMModerator -
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)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 1:20 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 5:19 PM
Tuesday, May 22, 2012 1:19 PMModerator
All replies
-
Hi Alex,
No, the keyboard is under the control of the user.
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Monday, May 21, 2012 1:05 PM
- Marked as answer by Alex ZS Tuesday, May 22, 2012 12:29 AM
Monday, May 21, 2012 1:03 PMModerator -
And the keys that are displayed in the keyboard cannot be customized by the app? Like to show only numbers for certain input fields?
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 12:37 PM
- Unmarked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 12:37 PM
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.
thanks.
Patrick
Tuesday, May 22, 2012 4:18 AM -
Hi Patrick,
No...
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
Jeff Sanders (MSFT)
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 12:37 PM
Tuesday, May 22, 2012 12:37 PMModerator -
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)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 1:20 PM
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, May 22, 2012 5:19 PM
Tuesday, May 22, 2012 1:19 PMModerator -
Great Jeff, will use that definitely in our app... once we got it working with the current RP buildTuesday, May 22, 2012 1:57 PM