emojiResults[highlightedEmoji()] resulted to undefined causing selectEmoji function to crash. Fixed this by setting emojiResults before calling selectEmoji.
Added some unnecessary stuff at first and then realized how the code was actually supposed to work.
If the user doesn't use the toolbox emojiResults[highlightedEmoji()] results into weird behaviour. Typing ":)" or ":D" and pressing space doesn't result to wanted emojis.
Writing ;smiley; and pressing space still results to ;smiley;smiley; where the latter ;smiley; turn to emoji. Using ; for demonstration purposes.
I probably should have waited for some conversation under the issue so feel free to disgard this😄
Some notes:
I probably should have waited for some conversation under the issue so feel free to disgard this😄