Seems that event.which is no longer the way to pick up on key presses.
KeyboardEvent seems to be the way things are done with modern browsers.
We need to consider the new hotness that is KeyboardEvent.key and the related Key Values that will need to be the replacement of privateScanCodeMap
Be aware that making this change will limit our backwards compatibility can I use: keyboardevent.key
@ahsteele pointed out w3c-keys
which has a TypeScript definitions for many (but I don't think all) of the keys.
Seems that
event.whichis no longer the way to pick up on key presses.KeyboardEvent seems to be the way things are done with modern browsers.
We need to consider the new hotness that is
KeyboardEvent.keyand the related Key Values that will need to be the replacement ofprivateScanCodeMapBe aware that making this change will limit our backwards compatibility can I use:
keyboardevent.key@ahsteele pointed out w3c-keys
which has a TypeScript definitions for many (but I don't think all) of the keys.