Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Issue 2874783004: Remove selected text when committing empty text (Closed)

Created:
3 years, 7 months ago by Changwan Ryu
Modified:
3 years, 7 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 chunk +1 line, -4 lines 1 comment Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 2 chunks +9 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp View 2 chunks +17 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Changwan Ryu
PTAL.
3 years, 7 months ago (2017-05-11 09:13:26 UTC) #4
aelias_OOO_until_Jul13
lgtm, thanks. Over to yosin@ for OWNERS. Right, there has been a lot of pain ...
3 years, 7 months ago (2017-05-11 19:09:57 UTC) #7
yosin_UTC9
lgtm Thanks for simplify the code. This is good patch since fixing an issue and ...
3 years, 7 months ago (2017-05-12 05:06:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874783004/1
3 years, 7 months ago (2017-05-12 05:26:42 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 05:33:04 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/79067c775b1196aa0be445effa81...

Powered by Google App Engine
This is Rietveld 408576698