Bug 1883217

Summary: [libreoffice writer/calc/impress] In some cases, while deleting an emoji, the one at the first place in selection window re-appears.
Product: [Fedora] Fedora Reporter: Bhushan Barve <bbarve>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: bbarve, caolanm, dtardon, erack, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 05:19:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
emoji deletion none

Description Bhushan Barve 2020-09-28 13:19:32 UTC
Created attachment 1717261 [details]
emoji deletion

Description of problem:In libreoffice applications, tried deleting an emoji. In some cases, when I entered the emoji at places other than at first place from selection window, then while deleting it, the emoji at the first place was re-appearing. This is observed with some emojis only(man, woman, boy etc), not all. 

Observed with all libreoffice applications like writer, calc, impress. Not observed with other applications like gedit etc. Please see the attached screencast for the reference.


Version-Release number of selected component (if applicable):
libreoffice-core-7.0.1.2-3.fc33.x86_64
F33

How reproducible:
reproducible 100% in case of some emoji only.

Steps to Reproduce:
1. Launch oowriter/calc/impress
2. press ctrl+shift+e followed by 'man'
3. hit spacebar twice to have emoji at 2nd place selected
4. Hit enter
5. Try to delete it with backspace

Actual results:
While deleting, the emoji at the 1st place in the selection window also appears.

Expected results:
The emoji at the first place should not reappear while deleting other emoji.

Additional info:

Comment 1 Caolan McNamara 2020-09-28 14:11:55 UTC
The 2nd place emoji is the 1st place emoji followed by a Fitzpatrick Emoji Type Modifier. I imagine the backspace is chipping away at the skin color modifiers that follow the base emoji and its not entirely clear that's something we shouldn't do. IIRC we deliberately use backspace to remove modifiers/combining characters for CTL. A Delete at the start will remove the entire grapheme as expected.

Comment 2 Bhushan Barve 2020-09-29 05:19:03 UTC
That's right, use of delete key removes it properly. Thanks Caolan, for the explanation. :)
I'm marking this bug as closed (Not a bug). If anyone feels otherwise, feel free to re-open it.