diff options
author | 2013-04-17 19:47:30 -0700 | |
---|---|---|
committer | 2013-04-17 19:47:30 -0700 | |
commit | ca796e2d45617b72a0e40d5122eda3c26fe71563 (patch) | |
tree | 4ca8ce7b7d6e944df880508c493c0d3f7a257b3d /java/src | |
parent | 074fee655bcd8ba95ee016b49ac5d8e61e45eaac (diff) | |
parent | aa6924e9b2094ae64c8cecf6b5b5c14c0f6fb54a (diff) | |
download | latinime-ca796e2d45617b72a0e40d5122eda3c26fe71563.tar.gz latinime-ca796e2d45617b72a0e40d5122eda3c26fe71563.tar.xz latinime-ca796e2d45617b72a0e40d5122eda3c26fe71563.zip |
am aa6924e9: am 78d65873: Merge "Don\'t recapitalize on shift while on symbol layout"
* commit 'aa6924e9b2094ae64c8cecf6b5b5c14c0f6fb54a':
Don't recapitalize on shift while on symbol layout
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 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() |