Answered by:
HTML + JAVASCRIPT CUSTOM TEXT CONTROL

Question
-
Hi,
I'm looking at creating a custom text control for a windows store app and would like to launch the onscreen keyboard with the same sort of behaviour as a standard text box.
According to this: http://msdn.microsoft.com/en-us/library/windows/apps/hh465404.aspx and what I have read elsewhere its not possible to invoke this progromatically, however it appears from here: http://code.msdn.microsoft.com/windowsapps/Touch-keyboard-sample-43532fda#content that it's possible to create a custom control in C# and XAML that allows the OS to detect when the keyboard is available and invoke it accordingly.
I've had a bit of a play in JS without success and before I go completely down a dead end I was wondering if its possible in JS and HTML to create a custom control that invokes the keyboard in the same fashion as a text control?
Friday, September 21, 2012 4:43 AM
Answers
-
Hi,
Please refer to the example at: http://code.msdn.microsoft.com/windowsapps/SemanticZoom-for-custom-4749edab#content.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, September 27, 2012 2:47 PM
- Marked as answer by Dino He Thursday, October 11, 2012 2:24 PM
Wednesday, September 26, 2012 9:36 AM
All replies
-
The article you referenced contains advice for creating a custom control with HTML:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465404.aspx#setting_the_right_accessibility_properties
In general, you need to use ARIA properties on your custom control to indicate it's a text field.
Thanks,
Anil
Sunday, September 23, 2012 4:41 PM -
Hi,
Please refer to the example at: http://code.msdn.microsoft.com/windowsapps/SemanticZoom-for-custom-4749edab#content.
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Thursday, September 27, 2012 2:47 PM
- Marked as answer by Dino He Thursday, October 11, 2012 2:24 PM
Wednesday, September 26, 2012 9:36 AM -
Thanks Anil,
That relies on the ContentEditable to be true, how about if I want to listen for keyboard events myself? I guess I can use content editable but over ride its text input.
Tuesday, December 11, 2012 8:32 PM