Fix handling shift + enter

Bug: 14278758
Change-Id: Id77c99b83cc69855972b27c9cebd482c8cbd3539
main
Tadashi G. Takaoka 2014-04-23 17:39:34 -07:00
parent 7de3d0eed7
commit 393da03c8e
1 changed files with 3 additions and 1 deletions

View File

@ -451,8 +451,10 @@ public final class InputLogic {
break; break;
case Constants.CODE_SHIFT_ENTER: case Constants.CODE_SHIFT_ENTER:
// TODO: remove this object // 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( final InputTransaction tmpTransaction = new InputTransaction(
inputTransaction.mSettingsValues, inputTransaction.mEvent, inputTransaction.mSettingsValues, tmpEvent,
inputTransaction.mTimestamp, inputTransaction.mSpaceState, inputTransaction.mTimestamp, inputTransaction.mSpaceState,
inputTransaction.mShiftState); inputTransaction.mShiftState);
didAutoCorrect = handleNonSpecialCharacter(tmpTransaction, handler); didAutoCorrect = handleNonSpecialCharacter(tmpTransaction, handler);