locked
autocompletion inside virtual keyboard

    Question

  • Hi,

    I want to make an autocomplete component like weather or sports application in JavaScript but I don't know which component used ? I was thiniking that an input type="search" with a dataList would be ok but I don't know how display my autosuggest list inside virtual keyboard when it is opened.

    In weather application, when the virtual keyboard is opened, the result of autocompletion appears inside virtual keyboard horizontally and when the user uses a normal keyboard, it is just an input type="search".

    Any idea ?

    regards


    • Edited by emorvill Monday, July 16, 2012 2:39 PM
    Monday, July 16, 2012 1:41 PM

Answers

  • The keyboard is not extensible.  What you see is the bottom AppBar on top of the keyboard in that situation.


    Jeff Sanders (MSFT)

    Tuesday, July 17, 2012 7:16 PM
    Moderator

All replies

  • Hi,

    Input with type search does not provide an auto complete feature. To support autocomplete, I would like to suggest you to use jQuery UI: http://jqueryui.com/demos/autocomplete/.

    Best Regards,

    Ming Xu.


    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

    Tuesday, July 17, 2012 11:15 AM
    Moderator
  • Hi,

    the problem is not to make an autocomplete but try to have the same behaviour that weather app :

    Case with normal keyboard :


    Case with virtual keyboard :

    So my question is how to added the autosuggest response inside virtual keyboard when it is displayed or just have a input type=search instead. A winControl component exists for that ?

    Tuesday, July 17, 2012 12:29 PM
  • The keyboard is not extensible.  What you see is the bottom AppBar on top of the keyboard in that situation.


    Jeff Sanders (MSFT)

    Tuesday, July 17, 2012 7:16 PM
    Moderator
  • And how does the app know the virtual keyboard is open?

    edit: found it, InputPane for the current view. Can register onhide and onshow events on it. Question is: will the input pane always be with a black background?

    • Edited by phil_ke Wednesday, July 18, 2012 2:10 PM
    Wednesday, July 18, 2012 10:59 AM
  • Hi Phil,

    I have never seen it a different color?  And no, we do not discuss any future functionality etc...

    -Jeff


    Jeff Sanders (MSFT)

    Wednesday, July 18, 2012 2:32 PM
    Moderator
  • aha, now that you mention it, I assume the keyboard might change on the Surface computers ;) Have to check the videos again...

    Wednesday, July 18, 2012 2:43 PM
  • Hmmm You may be right there!  Unfortunately until I get one in hand I will not know for sure.

    Jeff Sanders (MSFT)

    Wednesday, July 18, 2012 3:45 PM
    Moderator