mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 664364 - Entering newline after Japanese in a textarea doesn't change cursor position. r=jchen
This commit is contained in:
parent
8af10cfeb6
commit
43aee85be5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user