Open BulkinKing opened 1 year ago
The problem seems to be in https://github.com/Helium314/openboard/blob/aba68b114beead9c11aa939d3098774718af597c/app/src/main/java/org/dslul/openboard/inputmethod/latin/inputlogic/InputLogic.java#L1188-L1190
lengthToDelete
is always 2 for emojis, but the actual necessary length may be (much!) more and depends on the emoji.
How to get the correct length? I have no idea...
Using sendDownUpKeyEvent(KeyEvent.KEYCODE_DEL)
when pressing delete works, but this causes issues with suggestions.
This is improved with https://github.com/Helium314/openboard/commit/ffe7d81ebc435f9998c2c61b8f07a01099b3d284, but may still occur for some emojis, or other characters.
Also it still happens when using delete swipe, as this is char-based (should be fixed in InputLogic
).
**It Does happen in OpenBoard too
Describe the bug When you Type any Emoji with zero width joiner it handles the most recent emoji correctly but Creates issue in remaining emoji
To Reproduce Steps to reproduce the behavior:
Expected behavior The whole cluster must be removed on backspace pressed the most recent cluster will be removed as in the example ๐ฉโ๐ฉโ๐ง๐ฉโ๐ฉโ๐งโ๐ฆ๐ฉโ๐ฉโ๐ฆโ๐ฆ๐๐ฟ๐๐ฟ๐บ๐ธ๐ฑ๐ฐ๐ฎ๐ณ the Indian flag will be removed correctly other will create issue on backspace press
Screenshots If applicable, add screenshots to help explain your problem
Smartphone (please complete the following information):