diff options
author | 2014-03-31 19:43:12 +0900 | |
---|---|---|
committer | 2014-04-14 21:28:24 +0900 | |
commit | 2282e8520a2c1984989a14fb09896536f5033b26 (patch) | |
tree | 3c6cab5a8453fd0be24b89cd5f261da2ffb3abf1 /java/src/com/android/inputmethod/event/DeadKeyCombiner.java | |
parent | 30d5ed67d6548a4d7efa6354d41ac9719a4e4488 (diff) | |
download | latinime-2282e8520a2c1984989a14fb09896536f5033b26.tar.gz latinime-2282e8520a2c1984989a14fb09896536f5033b26.tar.xz latinime-2282e8520a2c1984989a14fb09896536f5033b26.zip |
Fix updating the shift state upon backspace
Bug: 13514349
Change-Id: If4c9db12b0ab5be676f7a2f72715f469066ee537
Diffstat (limited to 'java/src/com/android/inputmethod/event/DeadKeyCombiner.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/DeadKeyCombiner.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java index 89e623a1d..bef4d8594 100644 --- a/java/src/com/android/inputmethod/event/DeadKeyCombiner.java +++ b/java/src/com/android/inputmethod/event/DeadKeyCombiner.java @@ -52,12 +52,16 @@ public class DeadKeyCombiner implements Combiner { // how dead keys work). // If the event is a space, we should commit the dead char alone, but if it's // not, we need to commit both. + // TODO: this is not necessarily triggered by hardware key events, so it's not + // a good idea to masquerade as one. This should be typed as a software + // composite event or something. return Event.createHardwareKeypressEvent(deadCodePoint, event.mKeyCode, - Constants.CODE_SPACE == event.mCodePoint ? null : event /* next */); + Constants.CODE_SPACE == event.mCodePoint ? null : event /* next */, + false /* isKeyRepeat */); } else { // We could combine the characters. return Event.createHardwareKeypressEvent(resultingCodePoint, event.mKeyCode, - null /* next */); + null /* next */, false /* isKeyRepeat */); } } } |