Commit b181ed4a authored by aurimas@chromium.org's avatar aurimas@chromium.org

Add AUTO_CORRECT flag to <input type="text" />

BUG=b/8627864
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/23458014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220652 0039d316-1c4b-4281-b951-d872f2087c98
parent c53fbb87
...@@ -58,6 +58,7 @@ public class AdapterInputConnection extends BaseInputConnection { ...@@ -58,6 +58,7 @@ public class AdapterInputConnection extends BaseInputConnection {
if (imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeText) { if (imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeText) {
// Normal text field // Normal text field
outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO; outAttrs.imeOptions |= EditorInfo.IME_ACTION_GO;
} else if (imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeTextArea || } else if (imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeTextArea ||
imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeContentEditable) { imeAdapter.getTextInputType() == ImeAdapter.sTextInputTypeContentEditable) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment