aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-09-18 05:44:34 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-18 05:44:34 -0700
commit1defb939c5f4fd13a4fe3642c7f710fca6aa2af6 (patch)
treec491585bf489d3588b288b70789975db83f5a21f /java/src/com/android
parent438b1b32d62486146d565622824cfebb1fd631be (diff)
parent08bc97f86fd82b51a59e1d0c6532b093c54dd3b5 (diff)
downloadlatinime-1defb939c5f4fd13a4fe3642c7f710fca6aa2af6.tar.gz
latinime-1defb939c5f4fd13a4fe3642c7f710fca6aa2af6.tar.xz
latinime-1defb939c5f4fd13a4fe3642c7f710fca6aa2af6.zip
am 08bc97f8: Merge "Allow double-space-to-period after a plus char"
* commit '08bc97f86fd82b51a59e1d0c6532b093c54dd3b5': Allow double-space-to-period after a plus char
Diffstat (limited to 'java/src/com/android')
-rw-r--r--java/src/com/android/inputmethod/latin/Constants.java4
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
2 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Constants.java b/java/src/com/android/inputmethod/latin/Constants.java
index 58cae7dd5..28d9e8652 100644
--- a/java/src/com/android/inputmethod/latin/Constants.java
+++ b/java/src/com/android/inputmethod/latin/Constants.java
@@ -169,9 +169,7 @@ public final class Constants {
public static final int CODE_EXCLAMATION_MARK = '!';
public static final int CODE_SLASH = '/';
public static final int CODE_COMMERCIAL_AT = '@';
- // TODO: Check how this should work for right-to-left languages. It seems to stand
- // that for rtl languages, a closing parenthesis is a left parenthesis. Is this
- // managed by the font? Or is it a different char?
+ public static final int CODE_PLUS = '+';
public static final int CODE_CLOSING_PARENTHESIS = ')';
public static final int CODE_CLOSING_SQUARE_BRACKET = ']';
public static final int CODE_CLOSING_CURLY_BRACKET = '}';
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index bfb904422..9f779eb43 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1394,7 +1394,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|| codePoint == Constants.CODE_CLOSING_PARENTHESIS
|| codePoint == Constants.CODE_CLOSING_SQUARE_BRACKET
|| codePoint == Constants.CODE_CLOSING_CURLY_BRACKET
- || codePoint == Constants.CODE_CLOSING_ANGLE_BRACKET;
+ || codePoint == Constants.CODE_CLOSING_ANGLE_BRACKET
+ || codePoint == Constants.CODE_PLUS;
}
// Callback for the {@link SuggestionStripView}, to call when the "add to dictionary" hint is