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/KeyboardSwitcher.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/KeyboardSwitcher.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/KeyboardSwitcher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java index 5f78cb91e..0d116dcf9 100644 --- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java @@ -499,26 +499,26 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha if (isShiftLocked()) { // Shift key is pressed while caps lock state, we will treat this state as shifted // caps lock state and mark as if shift key pressed while normal state. - setManualTemporaryUpperCase(true); shiftKeyState.onPress(); + setManualTemporaryUpperCase(true); } else if (isAutomaticTemporaryUpperCase()) { // Shift key is pressed while automatic temporary upper case, we have to move to // manual temporary upper case. + shiftKeyState.onPress(); setManualTemporaryUpperCase(true); - shiftKeyState.onPressOnShifted(); } else if (isShiftedOrShiftLocked()) { // In manual upper case state, we just record shift key has been pressing while // shifted state. shiftKeyState.onPressOnShifted(); } else { // In base layout, chording or manual temporary upper case mode is started. - toggleShift(); shiftKeyState.onPress(); + toggleShift(); } } else { // In symbol mode, just toggle symbol and symbol more keyboard. - toggleShift(); shiftKeyState.onPress(); + toggleShift(); } } |