aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-02-22 00:00:51 -0800
committerJean Chalard <jchalard@google.com>2012-02-22 00:00:51 -0800
commit32f0af1fc48f67907f0e731e18359f29e2b1df14 (patch)
tree99d9fe7ebe76f115aaae3468693569f8244e940f
parent193d23f40e1556074f323b7bd9695759f4798efe (diff)
downloadlatinime-32f0af1fc48f67907f0e731e18359f29e2b1df14.tar.gz
latinime-32f0af1fc48f67907f0e731e18359f29e2b1df14.tar.xz
latinime-32f0af1fc48f67907f0e731e18359f29e2b1df14.zip
Implement cancelling a manual pick (A4)
This is new code, but simple code. The new code path is never used for now, but it will be in an upcoming change. This serves to implement feature request #5968922 Change-Id: I3e67731ec6e9fc0b86c5cbd972e9c081781c11a9
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index beaccffb3..ad85cc077 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2230,8 +2230,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
ic.deleteSurroundingText(cancelLength + separatorLength, 0);
if (0 == separatorLength || mLastComposedWord.didCommitTypedWord()) {
// This is the case when we cancel a manual pick.
- // TODO: implement this
// We should restart suggestion on the word right away.
+ mWordComposer.resumeSuggestionOnLastComposedWord(mLastComposedWord);
+ mComposingStateManager.onStartComposingText();
+ ic.setComposingText(originallyTypedWord, 1);
} else {
ic.commitText(originallyTypedWord, 1);
// Re-insert the separator