Fix for 2170453: Capitalization sticks when entering passwords in Browser

This is caused by a delay in changing the shift state for performance reasons.
The delay was too long, causing multiple characters to be in shifted state when
typing fast (300ms interval).

Fix removes the optimization for the forward typing case. Doesn't affect the
backspace long-press optimization.

Triage: Hiroshi
Dr. No: mcleron
This commit is contained in:
Amith Yamasani 2009-10-12 12:59:34 -07:00
parent 0f3b8e8966
commit 8850bdc7e4

View file

@ -713,11 +713,7 @@ public class LatinIME extends InputMethodService
} else {
sendKeyChar((char)primaryCode);
}
if (mPredicting && mComposing.length() == 1) {
updateShiftKeyState(getCurrentInputEditorInfo());
} else {
postUpdateShiftKeyState();
}
updateShiftKeyState(getCurrentInputEditorInfo());
measureCps();
TextEntryState.typedCharacter((char) primaryCode, isWordSeparator(primaryCode));
}