From 4eb240eb2c932ce936be41d26ac780e68ada1622 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 23 Jan 2012 12:52:51 +0900 Subject: [PATCH] Force KeyboardShiftState reset by setShiftLocked(false) Change-Id: Ib00d598e6e6a91e594ae01cfc51fb688601f6b8f --- .../inputmethod/keyboard/internal/KeyboardShiftState.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyboardShiftState.java b/java/src/com/android/inputmethod/keyboard/internal/KeyboardShiftState.java index 11fb91a8c..4608e22a5 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyboardShiftState.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardShiftState.java @@ -73,12 +73,7 @@ public class KeyboardShiftState { break; } } else { - switch (oldState) { - case SHIFT_LOCKED: - case SHIFT_LOCK_SHIFTED: - mState = NORMAL; - break; - } + mState = NORMAL; } if (DEBUG) Log.d(TAG, "setShiftLocked(" + newShiftLockState + "): " + toString(oldState)