diff options
author | 2012-09-26 22:54:15 -0700 | |
---|---|---|
committer | 2012-09-26 22:54:15 -0700 | |
commit | 2d9454b5d077d465924700f8c99f3f26e30cd6ec (patch) | |
tree | d3643c20318376efa1385dd6c3a0eeb1897adac0 | |
parent | 4f097664822e0c5dfd4e2141ebd9c6244a3df247 (diff) | |
parent | 46f209fae2b056268b65ff1dec2c6f878dc1d9ac (diff) | |
download | latinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.tar.gz latinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.tar.xz latinime-2d9454b5d077d465924700f8c99f3f26e30cd6ec.zip |
am 46f209fa: am 4d1f3d11: Merge "Make gestures work correctly on keyboards with accented keys" into jb-mr1-dev
* commit '46f209fae2b056268b65ff1dec2c6f878dc1d9ac':
Make gestures work correctly on keyboards with accented keys
-rw-r--r-- | native/jni/src/proximity_info.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/native/jni/src/proximity_info.cpp b/native/jni/src/proximity_info.cpp index d6990325e..fde93b5a9 100644 --- a/native/jni/src/proximity_info.cpp +++ b/native/jni/src/proximity_info.cpp @@ -239,8 +239,8 @@ int ProximityInfo::getKeyIndexOf(const int c) const { // We do not have the coordinate data return NOT_AN_INDEX; } - const int baseLowerC = static_cast<int>(toBaseLowerCase(c)); - hash_map_compat<int, int>::const_iterator mapPos = mCodeToKeyMap.find(baseLowerC); + const int lowerCode = static_cast<int>(toLowerCase(c)); + hash_map_compat<int, int>::const_iterator mapPos = mCodeToKeyMap.find(lowerCode); if (mapPos != mCodeToKeyMap.end()) { return mapPos->second; } @@ -258,7 +258,7 @@ void ProximityInfo::initializeG() { // TODO: Optimize for (int i = 0; i < KEY_COUNT; ++i) { const int code = mKeyCodePoints[i]; - const int lowerCode = toBaseLowerCase(code); + const int lowerCode = static_cast<int>(toLowerCase(code)); mCenterXsG[i] = mKeyXCoordinates[i] + mKeyWidths[i] / 2; mCenterYsG[i] = mKeyYCoordinates[i] + mKeyHeights[i] / 2; mCodeToKeyMap[lowerCode] = i; |