diff options
author | 2013-04-16 12:33:41 +0900 | |
---|---|---|
committer | 2013-04-16 14:29:02 +0900 | |
commit | 1f523646303b935e3d5031e75a4c74f4ecd96b97 (patch) | |
tree | 317f5551254991f6c39978f315011c2ab55fd446 /java/src | |
parent | e259b9f57de4b3b95f5bef0d1a1566753805c926 (diff) | |
download | latinime-1f523646303b935e3d5031e75a4c74f4ecd96b97.tar.gz latinime-1f523646303b935e3d5031e75a4c74f4ecd96b97.tar.xz latinime-1f523646303b935e3d5031e75a4c74f4ecd96b97.zip |
Don't recapitalize on shift while on symbol layout
Change-Id: Ibf2cdedf510c296561bb5eeb6ff18c3414d6d6f4
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 4b33867c0..b941acf39 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1392,7 +1392,12 @@ public final class LatinIME extends InputMethodService implements KeyboardAction case Constants.CODE_SHIFT: // Note: calling back to the keyboard on Shift key is handled in onPressKey() // and onReleaseKey(). - handleRecapitalize(); + final Keyboard currentKeyboard = switcher.getKeyboard(); + if (null != currentKeyboard && currentKeyboard.mId.isAlphabetKeyboard()) { + // TODO: Instead of checking for alphabetic keyboard here, separate keycodes for + // alphabetic shift and shift while in symbol layout. + handleRecapitalize(); + } break; case Constants.CODE_SWITCH_ALPHA_SYMBOL: // Note: calling back to the keyboard on symbol key is handled in onPressKey() |