aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-08-21 11:59:21 +0900
committerJean Chalard <jchalard@google.com>2013-08-21 11:59:21 +0900
commit2448159ad4bf900c1aba10dbfe51dd5479d40e38 (patch)
tree518a2e94a8ec80d51d74f5015e595fef12319a34 /java/src
parent2c7a3e0405b71101e5f4ce85ef9697036782c860 (diff)
downloadlatinime-2448159ad4bf900c1aba10dbfe51dd5479d40e38.tar.gz
latinime-2448159ad4bf900c1aba10dbfe51dd5479d40e38.tar.xz
latinime-2448159ad4bf900c1aba10dbfe51dd5479d40e38.zip
Don't start composing on dash.
Bug: 10403176 Change-Id: I9f969ab9b772dc5ba2015c494b4f98a8864277c4
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 816c6daa4..5edd92b5a 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2051,10 +2051,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
(!mConnection.isCursorTouchingWord(currentSettings)
|| !currentSettings.mCurrentLanguageHasSpaces)) {
// 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
- // separator and it should be treated as a normal character, except in the first
- // position where it should not start composing a word.
- isComposingWord = (Constants.CODE_SINGLE_QUOTE != primaryCode);
+ // the character is a single quote or a dash. The idea here is, single quote and dash
+ // are not separators and they should be treated as normal characters, except in the
+ // first position where they should not start composing a word.
+ 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
// 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