+ 2
Key event key not recognized
The key returned by event. key is always unidentified. Only enter key is identified. This happens on codeplayground. https://code.sololearn.com/W9xLWlbj6F35/?ref=app
5 odpowiedzi
+ 3
There is a mistake in line 3.
Change from key to keyCode
+ 1
I have tried with all possible combinations keycode, charCode, which, key, on my android phone
It never gives the correct answer.
+ 1
Just make the "keycode" camel type forma. Change it from "keycode" to "keyCode" so it would work. Remember, JavaScript is case sensitive.
+ 1
Changed keycode to keyCode. Now it recognizes enter key and sometimes backspace key. It returns 229 for all the other keys(alphabets and numbers)
0
I see it works with Input type =number what's the problem with input type = text