-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support emoji IMEs #469
Comments
👍 I'll give this a try, because I love adding emojis in my squash messages. |
@parisk the technique we use in Hyper (might be useful for you) is to place the contenteditable inside the actual caret, so that its position remains relevant. |
Yes we do something similar with our textarea. @parisk let me know if you need help understanding the |
In our case I believe we always have it inside the caret div, so no reposition is needed. @matheuss can confirm |
Our caret is an actual character on screen which may also contain text and it's reconstructed whenever the prompt line is refreshed. |
Yeah @rauchg, we always have our own |
I think that we the best option for us is moving the hidden textarea to the caret's position on every stroke (similar to CodeMirror's mechanism for the hidden textarea). What we have to investigate though is why the character is not being inserted in the terminal when click. I guess it's a focus issue, but I will get on top of it within the weekend to tell for sure. |
The reason we're not getting the emoji is because we don't listen to the |
You mean ditching keypress/keydown completely for |
Not sure yet, maybe we don't need keydown anymore? I've also been told that the input eventis needed to respect repeating chars when holding down a key on macOS. |
The only way I see to do this is to handle the However, Firefox doesn't support the On the other hand, only in Firefox (Mac OS X) I am able to input emojis normally, but only half of the emoji shows up: Not sure how this is happening. Any thoughts? |
@juancampa has it working on Hyper's fork, should be an incoming PR soon. |
@Tyriar I believe they are 2 issues:
|
What project is this? (gif u sent) |
@LabhanshAgrawal could you create a new issue with a gif/screenshot of the new problem? |
done #3629 |
Currently inputting emojis doesn't work on all platforms (via mac: cmd+ctrl+space, windows: win+.).
Context: vercel/hyper#1275 (comment)
VS Code: microsoft/vscode#35266
Related: #467
The text was updated successfully, but these errors were encountered: