question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backspace does not properly delete complicated emojis

See original GitHub issue

Bug 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

complicated

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
adjourncommented, Mar 24, 2019

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 native contenteditable.

  • Regular emojis take 2 arrow key presses
  • Complex emojis (e.g with skin tone) take 4 arrow key presses
1reaction
adjourncommented, Apr 7, 2019

Your input (and maybe wacky use cases which might break it) is greatly appreciated in #2680 .

CC: @grsmvg @scottluptowski @rikkit

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found