Search in sources :

Example 6 with InputTransaction

use of com.android.inputmethod.event.InputTransaction in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class LatinIME method onTextInput.

// Called from PointerTracker through the KeyboardActionListener interface
@Override
public void onTextInput(final String rawText) {
    // TODO: have the keyboard pass the correct key code when we need it.
    final Event event = Event.createSoftwareTextEvent(rawText, Constants.CODE_OUTPUT_TEXT);
    final InputTransaction completeInputTransaction = mInputLogic.onTextInput(mSettings.getCurrent(), event, mKeyboardSwitcher.getKeyboardShiftMode(), mHandler);
    updateStateAfterInputTransaction(completeInputTransaction);
    mKeyboardSwitcher.onEvent(event, getCurrentAutoCapsState(), getCurrentRecapitalizeState());
}
Also used : InputTransaction(com.android.inputmethod.event.InputTransaction) Event(com.android.inputmethod.event.Event) KeyEvent(android.view.KeyEvent)

Aggregations

InputTransaction (com.android.inputmethod.event.InputTransaction)6 KeyEvent (android.view.KeyEvent)3 Event (com.android.inputmethod.event.Event)3 SpannableString (android.text.SpannableString)2 SuggestedWords (com.android.inputmethod.latin.SuggestedWords)1