Continue swapping sentence separator and space

Bug: 3504990
Change-Id: I3de44e9d9adb0bcafa2e59685c4cdc257716b1d6
main
Tadashi G. Takaoka 2011-03-02 21:14:53 -08:00
parent 662bb7c26c
commit 424f6ec2bc
2 changed files with 1 additions and 2 deletions

View File

@ -1627,7 +1627,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
return;
}
TextEntryState.acceptedSuggestion(suggestions.getWord(0), suggestion);
// If this is a punctuation, apply it through the normal key press
if (suggestion.length() == 1 && (isWordSeparator(suggestion.charAt(0))
|| isSuggestedPunctuation(suggestion.charAt(0)))) {

View File

@ -107,6 +107,7 @@ public class TextEntryState {
break;
case ACCEPTED_DEFAULT:
case SPACE_AFTER_PICKED:
case PUNCTUATION_AFTER_ACCEPTED:
if (isSpace) {
setState(SPACE_AFTER_ACCEPTED);
} else if (isSeparator) {
@ -130,7 +131,6 @@ public class TextEntryState {
case START:
case UNKNOWN:
case SPACE_AFTER_ACCEPTED:
case PUNCTUATION_AFTER_ACCEPTED:
case PUNCTUATION_AFTER_WORD:
if (!isSpace && !isSeparator) {
setState(IN_WORD);