T
T
Think With Your Head2017-01-23 19:11:20
JavaScript
Think With Your Head, 2017-01-23 19:11:20

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

1 answer(s)
A
Alexander Aksentiev, 2017-01-23
@Sanasol

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 question

Ask a Question

731 491 924 answers to any question