mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Implement cancelling a manual pick (A4)"
This commit is contained in:
commit
80c25df49d
@ -2198,8 +2198,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||||||
ic.deleteSurroundingText(cancelLength + separatorLength, 0);
|
ic.deleteSurroundingText(cancelLength + separatorLength, 0);
|
||||||
if (0 == separatorLength || mLastComposedWord.didCommitTypedWord()) {
|
if (0 == separatorLength || mLastComposedWord.didCommitTypedWord()) {
|
||||||
// This is the case when we cancel a manual pick.
|
// This is the case when we cancel a manual pick.
|
||||||
// TODO: implement this
|
|
||||||
// We should restart suggestion on the word right away.
|
// We should restart suggestion on the word right away.
|
||||||
|
mWordComposer.resumeSuggestionOnLastComposedWord(mLastComposedWord);
|
||||||
|
mComposingStateManager.onStartComposingText();
|
||||||
|
ic.setComposingText(originallyTypedWord, 1);
|
||||||
} else {
|
} else {
|
||||||
ic.commitText(originallyTypedWord, 1);
|
ic.commitText(originallyTypedWord, 1);
|
||||||
// Re-insert the separator
|
// Re-insert the separator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user