Don't start composing on dash.
Bug: 10403176 Change-Id: I9f969ab9b772dc5ba2015c494b4f98a8864277c4main
parent
2c7a3e0405
commit
2448159ad4
|
@ -2051,10 +2051,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
(!mConnection.isCursorTouchingWord(currentSettings)
|
(!mConnection.isCursorTouchingWord(currentSettings)
|
||||||
|| !currentSettings.mCurrentLanguageHasSpaces)) {
|
|| !currentSettings.mCurrentLanguageHasSpaces)) {
|
||||||
// Reset entirely the composing state anyway, then start composing a new word unless
|
// Reset entirely the composing state anyway, then start composing a new word unless
|
||||||
// the character is a single quote. The idea here is, single quote is not a
|
// the character is a single quote or a dash. The idea here is, single quote and dash
|
||||||
// separator and it should be treated as a normal character, except in the first
|
// are not separators and they should be treated as normal characters, except in the
|
||||||
// position where it should not start composing a word.
|
// first position where they should not start composing a word.
|
||||||
isComposingWord = (Constants.CODE_SINGLE_QUOTE != primaryCode);
|
isComposingWord = (Constants.CODE_SINGLE_QUOTE != primaryCode
|
||||||
|
&& Constants.CODE_DASH != primaryCode);
|
||||||
// Here we don't need to reset the last composed word. It will be reset
|
// Here we don't need to reset the last composed word. It will be reset
|
||||||
// when we commit this one, if we ever do; if on the other hand we backspace
|
// when we commit this one, if we ever do; if on the other hand we backspace
|
||||||
// it entirely and resume suggestions on the previous word, we'd like to still
|
// it entirely and resume suggestions on the previous word, we'd like to still
|
||||||
|
|
Loading…
Reference in New Issue