Index: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
index ade6398bbb375e7330f2b6b55340e0d7d0b206f2..ade77fdd37e98ce97f354d6b81c8b3e8a1478bb0 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
@@ -566,7 +566,7 @@ public class ImeAdapter { |
timestampMs, COMPOSITION_KEY_CODE, 0, unicodeFromKeyEvent); |
if (isCommit) { |
- nativeCommitText(mNativeImeAdapterAndroid, text.toString()); |
+ nativeCommitText(mNativeImeAdapterAndroid, text.toString(), newCursorPosition); |
} else { |
nativeSetComposingText( |
mNativeImeAdapterAndroid, text, text.toString(), newCursorPosition); |
@@ -770,7 +770,8 @@ public class ImeAdapter { |
int end, int backgroundColor); |
private native void nativeSetComposingText(long nativeImeAdapterAndroid, CharSequence text, |
String textStr, int newCursorPosition); |
- private native void nativeCommitText(long nativeImeAdapterAndroid, String textStr); |
+ private native void nativeCommitText( |
+ long nativeImeAdapterAndroid, String textStr, int newCursorPosition); |
private native void nativeFinishComposingText(long nativeImeAdapterAndroid); |
private native void nativeAttachImeAdapter(long nativeImeAdapterAndroid); |
private native void nativeSetEditableSelectionOffsets(long nativeImeAdapterAndroid, |