mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
update readme and description
This commit is contained in:
parent
857fe3c59f
commit
5ce9e09f7d
3 changed files with 8 additions and 2 deletions
|
@ -1253,13 +1253,12 @@ public final class InputLogic {
|
|||
// TODO: Add a new StatsUtils method onBackspaceWhenNoText()
|
||||
return;
|
||||
}
|
||||
final int lengthToDelete =
|
||||
Character.isSupplementaryCodePoint(codePointBeforeCursor) ? 2 : 1;
|
||||
if (StringUtils.mightBeEmoji(codePointBeforeCursor)) {
|
||||
// emoji length varies, so we'd need to find out length to delete correctly
|
||||
// the solution is not optimal, but a reasonable workaround for issues when trying to delete emojis
|
||||
sendDownUpKeyEvent(KeyEvent.KEYCODE_DEL);
|
||||
} else {
|
||||
final int lengthToDelete = Character.isSupplementaryCodePoint(codePointBeforeCursor) ? 2 : 1;
|
||||
mConnection.deleteTextBeforeCursor(lengthToDelete);
|
||||
int totalDeletedLength = lengthToDelete;
|
||||
if (mDeleteCount > Constants.DELETE_ACCELERATE_AT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue