Backspace does not properly delete complicated emojis
See original GitHub issueBug Report: Backspace does not handle complicated emojis
What’s the current behavior?
For an emoji that is represented with multiple characters (example: male zombie 🧟♂️), attempting to delete this emoji with the backspace key does not work as expected.
The user must hit the backspace key n
times where n is the number of characters in the emoji representation.
What’s the expected behavior?
Pressing backspace once should delete the emoji.
Reproduction
You can reproduce this on the Slate examples page: https://www.slatejs.org/#/plain-text. I am using Chrome on Mac 10.14.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Why must many emojis be deleted in a Unicode encoded text ...
I've found out that many emojis in a UTF-8 encoded text file require two BACKSPACE key presses to be deleted by UltraEdit for...
Read more >For some emojis, it takes 2 keystrokes to delete - Bug graveyard
for example. similar to old bugs: Backspacing emoji doesn't delete the entire unicode sequence Bug graveyard.
Read more >dart - How to delete/detect any emoji as a whole from a string ...
I need to implement a backspace action. It should delete one by one correctly. For example, hello你🇵🇬 should become ``hello你` at the first ......
Read more >Bizarre keyboard behaviour when using Facebook app
I can type, backspace, move the cursor to where I want and backspace some more, post emojis, etc etc etc. Next, I can...
Read more >Gönderiler – SwiftKey - SwiftKey Support
I have "emoji predictions" un-checked in settings, on my Samsung Galaxy S10 with Android 9.0. So there is no emoji shown on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Emoji issue seems to be much bigger than that for me (not sure if Linux specific).
@grsmvg Every pasted emoji takes several arrow key presses in Slate to move the selection over “for real”, first press moves caret visually over but when I type a character or press
Enter
, emoji gets split into two � characters. No such issue in nativecontenteditable
.Your input (and maybe wacky use cases which might break it) is greatly appreciated in #2680 .
CC: @grsmvg @scottluptowski @rikkit