diff options
author | 2014-04-14 12:31:22 +0000 | |
---|---|---|
committer | 2014-04-14 12:31:22 +0000 | |
commit | 751dc070bf5cbf2534eb86f5dbc05ec38fcffbee (patch) | |
tree | 749b9414c8edc6c97a6a1b38d4257ffd8bafd467 /java/src/com/android/inputmethod/event/DeadKeyCombiner.java | |
parent | d4e54af0bad9cdee02756f4973fb48670005e31a (diff) | |
parent | 2282e8520a2c1984989a14fb09896536f5033b26 (diff) | |
download | latinime-751dc070bf5cbf2534eb86f5dbc05ec38fcffbee.tar.gz latinime-751dc070bf5cbf2534eb86f5dbc05ec38fcffbee.tar.xz latinime-751dc070bf5cbf2534eb86f5dbc05ec38fcffbee.zip |
Merge "Fix updating the shift state upon backspace"
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 */); } } } |