irregular-expressions
irregular-expressions copied to clipboard
Smarter delete key behavior
Some displayed characters are actually composed of 2+ unicode characters.
If user deletes this kind of compound-character, the delete operation should be smart enough to know how many char
s to remove (not always 1).
Study this example that uses a StringBuilder to hold state: https://android.googlesource.com/platform/development/+/master/samples/SoftKeyboard/src/com/example/android/softkeyboard/SoftKeyboard.java
๐ ๐๐๐ง๐ ๐ฅ๐ ๐๐๐ฅ ๐๐๐๐๐ค๐ก๐๐๐ ๐ฅ๐จ๐๐๐ ๐๐ ๐ฃ ๐๐๐๐ ๐๐๐๐ฃ๐๐๐ฅ๐๐ฃ, ๐๐๐ ๐ ๐๐ ๐ ๐๐ฅ๐๐ ๐๐๐ค-๐ฅ๐ ๐ฆ๐๐๐๐๐ ๐๐๐ฅ๐ฅ๐๐ฃ๐ค.
Received this from user. First issue has to do with this backspace; second is with key size.
Is there any way that the backspace key could perform a 'double backspace' when the character to be deleted requires it?
want the text to be deleted letter by letter so I don't end up with the weird question mark things.
แดกสแดษด ษช แดสแดss สแดแดแดsแดแดแดแด... ษชษด sแดแดแด แดแดแดs๐๐๏ฟฝ < --- ๐ ๐๐ฆ๐๐ค๐ค ๐๐๐๐๐. ๐๐๐ ๐๐๐๐๐ ? ๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐๐, ๐๐๐๐ ๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐.
moving this along again to next
Issue #122 is a duplicate with a more precise title.
I suggest adding (deletion bug)
to this issue and closing #122.