Answer the question
In order to leave comments, you need to log in
How to detect event.keyCode for emoji?
Hello.
You need something like event.key or event.keyCode. For emoji, these properties return undefined.
Answer the question
In order to leave comments, you need to log in
If you at least tried to debug , you would most likely see that keyCode, which, etc. do not work at all on android (under chrome).
Because it has been deprecated and/or broken for some time now. The Google keyboard does not display the necessary events, so chrome does not see anything, judging by the discussion of the bug.
There is an option to get the last character from the string in the input with crutches, but check this yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question