Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
page.type has Emoji issues (UTF-8) #1096
Two-folded issue. Some Emojis aren't typed correctly (others seem to work, randomly). And newlines are also ignored (so is
Steps to reproduce
An empty HTML file, only has the following inside (it also doesn't work with the
The code that causes the problem:
Even without the Buffer and decoding, if you just use the following, it won't work:
What is the expected result?
What happens instead?
The keyboard event we are abusing to send accepts a 4 character UTF16 string, but it only uses the first character. This is causing large emoji characters to be truncated.
WebKit sends a