aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAmith Yamasani <nobody@android.com>2009-08-03 18:16:19 -0700
committerAmith Yamasani <yamasani@google.com>2009-09-30 17:37:51 -0700
commit56f96fe05b2b01c488ce569eb2eefc13ee917fd3 (patch)
tree2525fb284e1f9f8a469da0be657a55dbf14b68b1 /src
parent5442c7d4bad00615f7c7f997811b9d63423b9ee6 (diff)
downloadlatinime-56f96fe05b2b01c488ce569eb2eefc13ee917fd3.tar.gz
latinime-56f96fe05b2b01c488ce569eb2eefc13ee917fd3.tar.xz
latinime-56f96fe05b2b01c488ce569eb2eefc13ee917fd3.zip
AI 150810: Fix for 2023252 & 2023256: Turkish accented characters for the keyboard
BUG=2023252,2023256 Automated import of CL 150810
Diffstat (limited to 'src')
-rw-r--r--src/com/android/inputmethod/latin/LatinIME.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index b358df394..6ee9bd127 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -692,7 +692,8 @@ public class LatinIME extends InputMethodService
}
}
if (mInputView.isShifted()) {
- primaryCode = Character.toUpperCase(primaryCode);
+ // TODO: This doesn't work with ß, need to fix it in the next release.
+ primaryCode = new String(keyCodes, 0, 1).toUpperCase().charAt(0);
}
if (mPredicting) {
if (mInputView.isShifted() && mComposing.length() == 0) {
@@ -871,7 +872,7 @@ public class LatinIME extends InputMethodService
suggestion = suggestion.toString().toUpperCase();
} else if (preferCapitalization()
|| (mKeyboardSwitcher.isAlphabetMode() && mInputView.isShifted())) {
- suggestion = Character.toUpperCase(suggestion.charAt(0))
+ suggestion = suggestion.toString().toUpperCase().charAt(0)
+ suggestion.subSequence(1, suggestion.length()).toString();
}
InputConnection ic = getCurrentInputConnection();