Feature: Switch from deprecated keyCode to key in internal onKeyDown handler #6051
Labels
enhancement
Improvement over existing feature
soon-will-cause-trouble
These issues will soon turn into bugs if not addresses in a timely manner.
keyCode
is deprecated (see https://w3c.github.io/uievents/#legacy-KeyboardEvent). As "keyCode" is officially deprecated, lexical should be updated to replace all references to keyCode with eitherKeyboardEvent.code
orKeyboardEvent.key
where applicable.One of the functions using the deprecated keyCode:
lexical/packages/lexical/src/LexicalEvents.ts
Line 992 in ac97dfa
What's the impact? The popular
@testing-library/user-event
package no longer sets "keyCode" on their synthetic keyboard events.The text was updated successfully, but these errors were encountered: