aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-03-20 04:37:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-20 04:37:55 -0700
commit75ba24d4b333f8ea463e01ff1c7de1bacb5d6494 (patch)
tree56b1849db330f33ec2858ff909a98cc9a8d496fc /java/src/com/android/inputmethod/latin/LatinIME.java
parent97424f4d87ad9a9afc16f31152d56ed88ec524d8 (diff)
parent4df6bc0853fa5211416614130d1c027e6d0da210 (diff)
downloadlatinime-75ba24d4b333f8ea463e01ff1c7de1bacb5d6494.tar.gz
latinime-75ba24d4b333f8ea463e01ff1c7de1bacb5d6494.tar.xz
latinime-75ba24d4b333f8ea463e01ff1c7de1bacb5d6494.zip
am 4df6bc08: Merge "[CB10] Add an event for string input"
* commit '4df6bc0853fa5211416614130d1c027e6d0da210': [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);
}