Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@GaryQian
Copy link
Contributor

@GaryQian GaryQian commented May 14, 2019

Previously, we were subtracting a hard coded 1 index from the selection.

Here, we make use of Android's capability of distinguishing grapheme clusters to properly shift over by one glyph.

This fixes Chinese keyboards not being able to delete emojis.

Fixes flutter/flutter#23496

@GaryQian GaryQian changed the title Use built-in text selection shifting API to delete Use Android text selection shifting API to delete May 14, 2019
@jason-simmons
Copy link
Member

DynamicLayout.Builder requires API level 28. Use the old DynamicLayout constructor and suppress the deprecation warning.

@GaryQian
Copy link
Contributor Author

Landing on red LUCI engine build, as tree is in a known passing state after reverts (#8969)

@GaryQian GaryQian merged commit f5fa03b into flutter:master May 15, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 15, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 15, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request May 15, 2019
flutter/engine@849fa42...2080117

git log 849fa42..2080117 --no-merges --oneline
2080117 Roll src/third_party/skia 3f79f07a14eb..348880c3f67f (3 commits) (flutter/engine#8971)
4559951 Roll src/third_party/skia c8a84d2b7ff9..3f79f07a14eb (1 commits) (flutter/engine#8968)
f5fa03b Use Android text selection shifting API to handle keyboard backspace (flutter/engine#8956)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff ([email protected]), and stop
the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting an extended grapheme cluster (e.g certain emoji) in a text field leaves behind a question mark

3 participants