A React component to quickly add emojis to text fields using emoji codes, intended for use as a Chrome extension for Facebook Messenger. It looks and behaves similarly to the emoji autocomplete menu in Slack.
The component listens for changes on an editable <div>
. When a : and some letters matching to an emoji code are typed in the field, the autocomplete menu will appear. An emoji can be selected by clicking on it or by using โ and โ to navigate and pressing Enter or Tab. The menu can be dismissed with the Esc key. Emoji lookup is powered by emoji-mart-lite
.