Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19230] iOS: Ti.UI.TEXT_AUTOCAPITALIZATION_ALL does not work when using Ti.UI.KEYBOARD_NAMEPHONE_PAD

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2015-07-20T16:29:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsautocapitalization, keyboardType, textfield
ReporterShuo Liang
AssigneeEric Merriman
Created2015-07-19T12:24:38.000+0000
Updated2017-03-21T21:02:58.000+0000

Description

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.

Comments

  1. Ingo Muschenetz 2015-07-20

    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."
  2. Lee Morris 2017-03-21

    Closing ticket as invalid.

JSON Source