Use `KeyboardEvent.key` instead of `UIEvent.which`?
chalkygames123 opened this issue · 2 comments
chalkygames123 commented
Just curious, while the current implementation uses the deprecated which
property, is there any reason for this?
Lines 236 to 258 in 142e3b7
Though I haven't seen any problems with the current implementation in practice, I thought it would be preferable to follow the standard.
See:
- UIEvent.which - Web APIs | MDN https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which
- KeyboardEvent.key - Web APIs | MDN https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
KittyGiraudel commented
Pretty sure there is no valid reason. I’d happily accept a PR if you feel like submitting one. :)
chalkygames123 commented
Okay, I'll try to make a PR when I have some time!