Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16839] Android: When the textField has the autocorrect set in false certain keyboard types are not shown

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-19T21:59:42.000+0000
Affected Version/sRelease 3.1.3, Release 3.2.1, Release 3.2.2
Fix Version/sRelease 3.4.0
ComponentsAndroid
Labelsmodule_textfield, qe-manualtest, supportTeam
ReporterMarco Cota
AssigneeHieu Pham
Created2014-04-10T17:46:38.000+0000
Updated2014-08-19T21:59:42.000+0000

Description

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();

Comments

  1. Hieu Pham 2014-05-29

    master PR: https://github.com/appcelerator/titanium_mobile/pull/5742
  2. Vishal Duggal 2014-07-24

    PR merged
  3. Lokesh Choudhary 2014-08-19

    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

JSON Source