Answer the question
In order to leave comments, you need to log in
Why did VS Code cross out the keyCode property?
The code works as intended, there are no errors or warnings from the compiler. So what's the deal?
Answer the question
In order to leave comments, you need to log in
Because if you go to https://developer.mozilla.org/ru/docs/Web/API/Docu...
Then opposite the keyCode we will see
Warning: This attribute is deprecated; you should use key instead, if available.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question