diff options
author | 2014-01-22 21:00:13 -0800 | |
---|---|---|
committer | 2014-01-22 21:00:13 -0800 | |
commit | 868d99cb9b750a74988663ac57f2284b888cf1fe (patch) | |
tree | 53c582eeccbfd6a5db3686155c3f195d386a6eb4 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 1f753edd79c575d2165d7e0a11add8e59fb7ffbb (diff) | |
parent | eb6d41a525b08c1dc347e604e366021a807a367c (diff) | |
download | latinime-868d99cb9b750a74988663ac57f2284b888cf1fe.tar.gz latinime-868d99cb9b750a74988663ac57f2284b888cf1fe.tar.xz latinime-868d99cb9b750a74988663ac57f2284b888cf1fe.zip |
am eb6d41a5: [IL67] Externalize a call to the keyboard switcher
* commit 'eb6d41a525b08c1dc347e604e366021a807a367c':
[IL67] Externalize a call to the keyboard switcher
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 399d4917c..97fa90eec 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1260,7 +1260,20 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // this transformation, it should be done already before calling onCodeInput. final int keyX = mainKeyboardView.getKeyX(x); final int keyY = mainKeyboardView.getKeyY(y); - mInputLogic.onCodeInput(codePoint, keyX, keyY, mHandler, mKeyboardSwitcher, + final int codeToSend; + if (Constants.CODE_SHIFT == codePoint) { + // TODO: Instead of checking for alphabetic keyboard here, separate keycodes for + // alphabetic shift and shift while in symbol layout. + final Keyboard currentKeyboard = mKeyboardSwitcher.getKeyboard(); + if (null != currentKeyboard && currentKeyboard.mId.isAlphabetKeyboard()) { + codeToSend = codePoint; + } else { + codeToSend = Constants.CODE_SYMBOL_SHIFT; + } + } else { + codeToSend = codePoint; + } + mInputLogic.onCodeInput(codeToSend, keyX, keyY, mHandler, mKeyboardSwitcher, mSubtypeSwitcher); mKeyboardSwitcher.onCodeInput(codePoint); } |