locked
WinJS.Utilities.Key.add & subtract RRS feed

  • Question

  • I've registered a "keydown" event handler and I want to handle the add and subtract keys. It seems that these keys return keyCode 187 and 189 respectively and not the values of WinJS.Utilities.Key.add (=107) and WinJS.Utilities.Key.subtract(=109).
    Is this a bug?


    Paul Lambadaris SingularLogic SA

    Sunday, June 24, 2012 9:33 PM

Answers

  • Got it! The returned keyCodes are the equal and dash codes from the top of the keyboard - not from the keypad. Thanks anyway.

    Paul Lambadaris SingularLogic SA

    Sunday, June 24, 2012 9:49 PM