event.keyCode is deprecated - should we use event.key in $tw.keyboardManager
?
#8753
Replies: 5 comments 9 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.
-
@saqimtiaz ... IMO this one should be added to Planning for v5.4.0 |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'll create a PR now that addresses this discussion |
Beta Was this translation helpful? Give feedback.
-
Please continue the discussion at #9140 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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