aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-20 11:34:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-20 11:34:16 +0000
commit4df6bc0853fa5211416614130d1c027e6d0da210 (patch)
tree56b1849db330f33ec2858ff909a98cc9a8d496fc /java/src/com/android/inputmethod/latin/LatinIME.java
parentb20dad6fab49f71b8eb4ee0ce49bd2643c92944c (diff)
parent058a38988b607e1364e6491b97960d2044ad5068 (diff)
downloadlatinime-4df6bc0853fa5211416614130d1c027e6d0da210.tar.gz
latinime-4df6bc0853fa5211416614130d1c027e6d0da210.tar.xz
latinime-4df6bc0853fa5211416614130d1c027e6d0da210.zip
Merge "[CB10] Add an event for string input"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index b6d477629..38e386493 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1277,7 +1277,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// Called from PointerTracker through the KeyboardActionListener interface
@Override
public void onTextInput(final String rawText) {
- mInputLogic.onTextInput(mSettings.getCurrent(), rawText, mHandler);
+ // TODO: have the keyboard pass the correct key code when we need it.
+ final Event event = Event.createSoftwareTextEvent(rawText, Event.NOT_A_KEY_CODE);
+ mInputLogic.onTextInput(mSettings.getCurrent(), event, mHandler);
mKeyboardSwitcher.updateShiftState();
mKeyboardSwitcher.onCodeInput(Constants.CODE_OUTPUT_TEXT);
}