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

Issue 1593533002: Trigger compositionstart/end on commitText (Closed)

Created:
4 years, 11 months ago by Changwan Ryu
Modified:
4 years, 11 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Trigger compositionstart/end on commitText On Android, OSK may not accompany keycode when composing text. Currently, when OSK calls InputConnection#commitText(), web developers can only see key events for COMPOSITION_KEY_CODE without the delta change. By replacing commitText() by setComposingText() and finishComposingText(), we can notify developers of this delta change. BUG=577967

Patch Set 1 #

Total comments: 4

Patch Set 2 : change commitText instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -69 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java View 1 1 chunk +2 lines, -7 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 26 chunks +70 lines, -61 lines 0 comments Download
M content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java View 1 2 chunks +3 lines, -1 line 0 comments Download
A content/test/data/android/ime/input_forms.html View 1 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Changwan Ryu
Alex, could you take a look? I don't think we need to bring back the ...
4 years, 11 months ago (2016-01-15 09:10:07 UTC) #2
aelias_OOO_until_Jul13
I think we should bring back guess algorithm (uploaded in https://codereview.chromium.org/1583283008, I explained there why), ...
4 years, 11 months ago (2016-01-16 01:48:50 UTC) #3
Changwan Ryu
On 2016/01/16 01:48:50, aelias wrote: > I think we should bring back guess algorithm (uploaded ...
4 years, 11 months ago (2016-01-19 07:57:59 UTC) #4
Changwan Ryu
On 2016/01/19 07:57:59, Changwan Ryu wrote: > On 2016/01/16 01:48:50, aelias wrote: > > I ...
4 years, 11 months ago (2016-01-19 09:29:49 UTC) #6
aelias_OOO_until_Jul13
lgtm
4 years, 11 months ago (2016-01-19 21:32:56 UTC) #7
aelias_OOO_until_Jul13
On second thought, not lgtm. I don't like how this makes us send 2 IPCs ...
4 years, 11 months ago (2016-01-19 22:14:07 UTC) #8
Changwan Ryu
4 years, 11 months ago (2016-01-20 00:28:04 UTC) #9
On 2016/01/19 22:14:07, aelias wrote:
> On second thought, not lgtm.
> 
> I don't like how this makes us send 2 IPCs for a single action.  It's bad for
> performance and there could be bugs like a flicker of underline.
> 
> I also remembered there are new editing events "beforeedit" and "edit" defined
> in https://www.w3.org/TR/DOM-Level-3-Events/.  They have a field "EditEvent
> data" containing the updated text.  After that spec is implemented, the
> recommended best practice will become to listen to those events, not keyPress
> and compositionUpdate.  So we don't need to go out of our way to supply
> compositionUpdate events after all.

Makes sense. We don't need to trigger compositionupdate in that case.

Powered by Google App Engine
This is Rietveld 408576698