You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This polyfill currently overwrites the native KeyboardEvent.prototype.key on Internet Explorer and Edge. I understand that this is to ensure that IE and Edge give the standard value for some keys, but this polyfill is still in many ways inferior to the native implementation. It is missing many keys, it has no locale support #11, and the returned key for keypresses are wrong #15.
Is the isEdgeOrIE check the only thing that needs changing? I noticed you forked the repo but didn't modify this check. Did that change cause some other side effects?
I think that fork was only created for a pull request (#19). I don't actually use this or that in any code at the moment, for no good reason other than that I already had a polyfill in place in my main project that covers what I need.
I see no reason removing the check would cause side-effects, as long as you pair it with my shim to standardise the keys. (We use it in producation and have recieved no bug reports) The code would be something like:
This polyfill currently overwrites the native
KeyboardEvent.prototype.key
on Internet Explorer and Edge. I understand that this is to ensure that IE and Edge give the standard value for some keys, but this polyfill is still in many ways inferior to the native implementation. It is missing many keys, it has no locale support #11, and the returned key for keypresses are wrong #15.I have recently written a shim that fixes most bad key values of non-standard, native
event.key
implementations: https://github.com/nikparo/keyboardevent-key-standardiser-shim/ . My shim would play well with this one, unfortunately this one doesn't play well with mine :/Would you please remove the
isEdgeOrIE
check? Thanks.The text was updated successfully, but these errors were encountered: