locked
Current keyboard layout change event

    Question

  • Hi!

    I want to make a small app, which would show current keyboard layout in its tile. I can get current layout calling Windows.Globalization.Language.CurrentInputMethodLanguageTag on start, but what would be the best practice to catch (hook) layout change event (if possible)? 

    Wednesday, February 6, 2013 9:21 AM

Answers

  • Hi _al,

    So far there is a InputPane object which exposes "Showing", "Hiding" events for detecting the display and hide of the keyboard. But we cannot use it for detecting keyboard layout change.


    #InputPane class (Windows)
    http://msdn.microsoft.com/en-us/library/windows/apps/br242255.aspx


    For your case, if you want to get the current keyboard layout change instantly in your windows store app(when it runs), you might consider setup a javascript timer to constantly check the current keyboard setting so as to simulate a javascript event yourself.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Song Tian Wednesday, February 13, 2013 7:41 AM
    Friday, February 8, 2013 3:34 AM
    Moderator