Bug 664364 - Entering newline after Japanese in a textarea doesn't change cursor position. r=jchen

This commit is contained in:
Makoto Kato 2011-07-22 10:24:34 +09:00
parent 8af10cfeb6
commit 43aee85be5

View File

@ -341,6 +341,14 @@ public class GeckoInputConnection
mComposingText = text != null ? text.toString() : "";
if (!mComposing) {
if (mComposingText.length() == 0) {
// Some IMEs such as iWnn sometimes call with empty composing
// text. (See bug 664364)
// If composing text is empty, ignore this and don't start
// compositing.
return true;
}
// Get current selection
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_GET_SELECTION, 0, 0));