mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 614289 - Awesomescreen does not update while typing. r=blassey a=blocking-fennec
--HG-- extra : rebase_source : 175f3f9949512f343abf7c1fef7c6abb40b23096
This commit is contained in:
parent
7b515aea7c
commit
ac7ffbc0fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user