Fixes #53, if key is defined in the event or artificially generated event (detail.key), we prefer that over keyIdentifier or keyCode.
I've updated the test to actually check for the result of shift + ctrl + a which gives event.key = 'A', and purposely removed keyCode, code settings to mimic the ideal, future keyboard event which will have only key set.
Fixes #53, if
key
is defined in the event or artificially generated event (detail.key
), we prefer that overkeyIdentifier
orkeyCode
. I've updated the test to actually check for the result ofshift + ctrl + a
which givesevent.key = 'A'
, and purposely removedkeyCode, code
settings to mimic the ideal, future keyboard event which will have onlykey
set.