Bug 614289 - Awesomescreen does not update while typing. r=blassey a=blocking-fennec

--HG--
extra : rebase_source : 175f3f9949512f343abf7c1fef7c6abb40b23096
This commit is contained in:
Matt Brubeck 2010-11-24 14:07:58 -08:00
parent 7b515aea7c
commit ac7ffbc0fb

View File

@ -539,14 +539,23 @@ public class GeckoInputConnection
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_SET_SELECTION, start, before));
if (count == 0)
if (count == 0) {
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_DELETE_TEXT, 0, 0));
else
} else {
// Start and stop composition to force UI updates.
finishComposingText();
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_COMPOSITION_BEGIN, 0, 0));
GeckoAppShell.sendEventToGecko(
new GeckoEvent(0, count,
GeckoEvent.IME_RANGE_RAWINPUT, 0, 0, 0,
s.subSequence(start, start + count).toString()));
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.IME_COMPOSITION_END, 0, 0));
}
}
public void afterTextChanged(Editable s)