Bug 1058136 - Handle compose event to optimize composition usage; r=cpeterson

This commit is contained in:
Jim Chen
2014-09-04 14:38:18 -04:00
parent a0c4b5fdd3
commit c71471a6e6
4 changed files with 108 additions and 50 deletions

View File

@@ -472,7 +472,8 @@ AndroidGeckoEvent::Init(JNIEnv *jenv, jobject jobj)
mStart = jenv->GetIntField(jobj, jStartField);
mEnd = jenv->GetIntField(jobj, jEndField);
if (mAction == IME_REPLACE_TEXT) {
if (mAction == IME_REPLACE_TEXT ||
mAction == IME_COMPOSE_TEXT) {
ReadCharactersField(jenv);
} else if (mAction == IME_UPDATE_COMPOSITION ||
mAction == IME_ADD_COMPOSITION_RANGE) {