Reproduce Steps:
1. Simply run the following code in a classic project.
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var textField = Ti.UI.createTextField({
autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_ALL,
keyboardType: Ti.UI.KEYBOARD_NAMEPHONE_PAD,
borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
color: '#336699',
top: 20, left: 10,
width: 250, height: 60,
});
win.add(textField);
win.open();
Expect Result:
The keyboard should be locked on Ti.UI.TEXT_AUTOCAPITALIZATION_ALL
Actual Result:
The capitalisation does not locked.
Note
If remove "keyboardType: Ti.UI.KEYBOARD_NAMEPHONE_PAD,", the autocapitalisation will work well.
This is native behavior: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/#//apple_ref/occ/intfp/UITextInputTraits/autocapitalizationType "Some keyboard types do not support auto-capitalization. Specifically, this option is ignored if the value in the keyboardType property is set to UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, or UIKeyboardTypeNamePhonePad."
Closing ticket as invalid.