diff options
author | 2010-11-19 13:52:58 -0800 | |
---|---|---|
committer | 2010-11-19 16:51:50 -0800 | |
commit | 6769c67987f323008647f5d029c02f8cc95272ee (patch) | |
tree | 0beef3795194e68e7b78bcac417bb3c1959ab522 /java/src/com/android/inputmethod/latin/ModifierKeyState.java | |
parent | 75fde6489039c09056fb5e64d39630ece5ad57cf (diff) | |
download | latinime-6769c67987f323008647f5d029c02f8cc95272ee.tar.gz latinime-6769c67987f323008647f5d029c02f8cc95272ee.tar.xz latinime-6769c67987f323008647f5d029c02f8cc95272ee.zip |
Fix automatic temporary upper case mode behaviour
This change is a followup of I948ef26f
Automatic Temporary Upper Case mode acts like Normal mode until shift
key is pressed. However, after shift key is pressed, it acts like
Manual Temporary Upper Case mode.
Bug: 3193390
Change-Id: Id3d7a38a1f5905322cd46ded36b1db26576d49af
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ModifierKeyState.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ModifierKeyState.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/ModifierKeyState.java b/java/src/com/android/inputmethod/latin/ModifierKeyState.java index 07a5c4f7f..8443be433 100644 --- a/java/src/com/android/inputmethod/latin/ModifierKeyState.java +++ b/java/src/com/android/inputmethod/latin/ModifierKeyState.java @@ -49,7 +49,7 @@ public class ModifierKeyState { public void onOtherKeyPressed() { final int oldState = mState; - if (mState == PRESSING) + if (oldState == PRESSING) mState = MOMENTARY; if (DEBUG) Log.d(TAG, mName + ".onOtherKeyPressed: " + toString(oldState) + " > " + this); @@ -64,7 +64,7 @@ public class ModifierKeyState { return toString(mState); } - protected static String toString(int state) { + protected String toString(int state) { switch (state) { case RELEASING: return "RELEASING"; case PRESSING: return "PRESSING"; |