Chromium Code Reviews
DescriptionRemove selected text when committing empty text
Android's InputConnection API does not mention this, but replacing the
selected text by the new text seems to be the right behavior and is
consistent with EditText behavior. Also, this is consistent with
SetComposition()'s behavior for empty string.
In doing so,
- fix Editor to handle empty text and emit beforeinput event as expected
(https://w3c.github.io/uievents/#beforeinput mentions empty string
case)
- remove unnecessary code in WebLocalFrameImpl to fix test failures.
BUG=710621
Review-Url: https://codereview.chromium.org/2874783004
Cr-Commit-Position: refs/heads/master@{#471228}
Committed: https://chromium.googlesource.com/chromium/src/+/79067c775b1196aa0be445effa8109d85ca82b68
Patch Set 1 #
Total comments: 1
Messages
Total messages: 13 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||