diff options
author | 2011-08-23 17:27:48 +0900 | |
---|---|---|
committer | 2011-08-24 13:19:56 +0900 | |
commit | af52c0ea04c6563feaa6ea7dbac5dd87c2a48cc6 (patch) | |
tree | 1b6853ae234ab4feb9ac4f57b7a716ed4b02809e /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | f77009ac3a7c9fa640f111423881f9e0e2401881 (diff) | |
download | latinime-af52c0ea04c6563feaa6ea7dbac5dd87c2a48cc6.tar.gz latinime-af52c0ea04c6563feaa6ea7dbac5dd87c2a48cc6.tar.xz latinime-af52c0ea04c6563feaa6ea7dbac5dd87c2a48cc6.zip |
Implement "forceAscii" private IME option
This change also introduces "AsciiCapable" extra value for subtype
that indicates the subtype can input any ASCII code point from its
keyboard layout.
Only if the input field has "forceAscii" private IME option and the
current subtype doesn't have "AsciiCapable" extra value, the en_US
keyboard layout will be used for the input field.
Bug: 3384942
Change-Id: I25e2553e37ecb5002df1164e45f6273845fe463b
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 394414d03..552517bc8 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -106,6 +106,18 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar */ public static final String IME_OPTION_NO_SETTINGS_KEY = "noSettingsKey"; + /** + * The private IME option used to indicate that the given text field needs + * ASCII code points input. + */ + public static final String IME_OPTION_FORCE_ASCII = "forceAscii"; + + /** + * The subtype extra value used to indicate that the subtype keyboard layout is capable for + * typing ASCII characters. + */ + public static final String SUBTYPE_EXTRA_VALUE_ASCII_CAPABLE = "AsciiCapable"; + private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100; // How many continuous deletes at which to start deleting at a higher speed. |