aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-16 05:31:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-16 05:31:43 +0000
commit78d658734dc426ca2170fcdee74819c1f8171b78 (patch)
treedd1b6e5907a52ba880765731b9dbf9ccfe52a7ca /java/src
parent8094bf45d73a5f7257076afc97d91d6708ee03c4 (diff)
parent1f523646303b935e3d5031e75a4c74f4ecd96b97 (diff)
downloadlatinime-78d658734dc426ca2170fcdee74819c1f8171b78.tar.gz
latinime-78d658734dc426ca2170fcdee74819c1f8171b78.tar.xz
latinime-78d658734dc426ca2170fcdee74819c1f8171b78.zip
Merge "Don't recapitalize on shift while on symbol layout"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
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 99463ae5f..0a6f2ab00 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1401,7 +1401,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()