From 8850bdc7e4c1da7049231bc1e21f17213562f9b6 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Mon, 12 Oct 2009 12:59:34 -0700 Subject: [PATCH] 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 --- src/com/android/inputmethod/latin/LatinIME.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java index ae296aff6..8b76dbd39 100644 --- a/src/com/android/inputmethod/latin/LatinIME.java +++ b/src/com/android/inputmethod/latin/LatinIME.java @@ -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)); }