Issue
On Android versions 4.2 and 4.4 when the textfield has the autocorrect parameter as false some of the keyboard typed will not be displayed, Customer has reported that everything works ok on 4.0.X and during testing we confirmed that in older versions (Android 2.3.5) works correctly.
Steps to repro
- Run the test case
- Focus on each of the 4 textfields to show the keyboard
Expected Results:
Autocorrect Decimal will show the Decimal Pad keyboard.
Autocorrect Email will show the Email keyboard.
Autocorrect False Url will show the Url keyboard.
Autocorrect True Url will show Url Pad keyboard.
Actual Results:
Autocorrect Decimal shows the Decimal Pad keyboard.
Autocorrect Email does not show the Email keyboard.
Autocorrect False Url does not show the Url keyboard.
Autocorrect True Url shows the Url Pad keyboard.
Test Case
var win = Ti.UI.createWindow({
layout:'vertical'
});
var tf_autocorrect_1 = Ti.UI.createTextField({
top: 10,
hintText: "Autocorrect Decimal",
autocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
keyboardType: Titanium.UI.KEYBOARD_DECIMAL_PAD,
autocorrect: false
});
var tf_autocorrect_2 = Ti.UI.createTextField({
top: 10,
hintText: "Autocorrect Email",
autocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
keyboardType: Titanium.UI.KEYBOARD_EMAIL,
autocorrect: false
});
var tf_autocorrect_3 = Ti.UI.createTextField({
top: 10,
hintText: "Autocorrect False Url",
autocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
keyboardType: Titanium.UI.KEYBOARD_URL,
autocorrect: false
});
var tf_autocorrect_4 = Ti.UI.createTextField({
top: 10,
hintText: "Autocorrect True Url",
autocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
keyboardType: Titanium.UI.KEYBOARD_URL,
autocorrect: true
});
win.add(tf_autocorrect_1);
win.add(tf_autocorrect_2);
win.add(tf_autocorrect_3);
win.add(tf_autocorrect_4);
win.open();
master PR: https://github.com/appcelerator/titanium_mobile/pull/5742
PR merged
Verified the fix. Keyboard types are showing up as expected. Closing. Environment: Appc Studio : 3.4.0.201408180158 Ti SDK : 3.4.0.v20140815142514 Mac OSX : 10.8.5 Alloy : 1.5.0-dev CLI - 3.4.0-dev Code Processor: 1.1.1 Nexus 5 - android 4.4.4