diff options
author | 2011-12-05 12:23:38 +0900 | |
---|---|---|
committer | 2011-12-05 12:23:38 +0900 | |
commit | c410e243e983e95413dc2fc855a25fc0ede4bf3c (patch) | |
tree | e73b8194aa3ec5fe13dd091bb642a239d733f7ee /java/src/com/android/inputmethod | |
parent | 1acce4219d3e8e2607bfddd171ddeb0c11201ae4 (diff) | |
download | latinime-c410e243e983e95413dc2fc855a25fc0ede4bf3c.tar.gz latinime-c410e243e983e95413dc2fc855a25fc0ede4bf3c.tar.xz latinime-c410e243e983e95413dc2fc855a25fc0ede4bf3c.zip |
Ignore releasing shift key caused by long press
Bug: 5694715
Change-Id: If7b84f547f5701e84d740f186d284273565b7eba
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 4d30077e3..1d9ca787f 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -566,8 +566,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha if (shiftKeyState.isMomentary()) { // After chording input while normal state. toggleShift(); - } else if (isShiftLocked() && !isShiftLockShifted() && shiftKeyState.isPressing() - && !withSliding) { + } else if (isShiftLocked() && !isShiftLockShifted() && (shiftKeyState.isPressing() + || shiftKeyState.isPressingOnShifted()) && !withSliding) { // Shift has been long pressed, ignore this release. } else if (isShiftLocked() && !shiftKeyState.isIgnoring() && !withSliding) { // Shift has been pressed without chording while caps lock state. |