am b9e0b997: Merge "Fix handling shift + enter"

* commit 'b9e0b99765b81e098ac1fc70a1f1a4f4d18ed214':
  Fix handling shift + enter
main
Tadashi G. Takaoka 2014-04-24 02:41:22 +00:00 committed by Android Git Automerger
commit ce0a617f71
1 changed files with 3 additions and 1 deletions

View File

@ -451,8 +451,10 @@ public final class InputLogic {
break;
case Constants.CODE_SHIFT_ENTER:
// TODO: remove this object
final Event tmpEvent = Event.createSoftwareKeypressEvent(Constants.CODE_ENTER,
event.mKeyCode, event.mX, event.mY, event.isKeyRepeat());
final InputTransaction tmpTransaction = new InputTransaction(
inputTransaction.mSettingsValues, inputTransaction.mEvent,
inputTransaction.mSettingsValues, tmpEvent,
inputTransaction.mTimestamp, inputTransaction.mSpaceState,
inputTransaction.mShiftState);
didAutoCorrect = handleNonSpecialCharacter(tmpTransaction, handler);