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: mcleronmain
parent
0f3b8e8966
commit
8850bdc7e4
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue