Will
Will

Reputation: 845

How do I detect a user entering emojis, special/foreign characters and other input in Javascript - there is no keyup event?

On a Mac it is possible to enter emojis (via the emoji keyboard that comes up when you press control-cmd-space) or to enter accented versions of characters by holding a key down until options appear. Using these methods does not trigger a keyup or keydown event, so javascript that is intended to update things on user input is not being fired. How do I detect this kind of input? The change event doesn't fire until a user moves out a text input field, and I'm looking for things to happen as-you-type.

Upvotes: 2

Views: 708

Answers (1)

Will
Will

Reputation: 845

It turns out can detect these by looking for an 'input' event.

Upvotes: 2

Related Questions