event.keyCode is deprecated - should we use event.key in $tw.keyboardManager
?
#8753
Replies: 2 comments 5 replies
-
Can you link to the file(s) at GH where where you think we should change it. I did a global search for I found at the tw modules, where we can change them
|
Beta Was this translation helpful? Give feedback.
-
I don't believe we can do so until we officially stop supporting Internet Explorer. As I recall, event.key is not properly supported in IE. |
Beta Was this translation helpful? Give feedback.
-
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
There's a big red box stating that
event.keyCode
is deprecated in favor ofevent.key
For the sake of future compatibility and simplicity, shouldn't we use
event.key
in$tw.keyboardManager
?Beta Was this translation helpful? Give feedback.
All reactions