{ "id": "121546", "key": "TIMOB-15566", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-03T23:05:51.000+0000", "created": "2013-10-23T16:09:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-16T21:01:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Setting KEYBOARD_NUMBERS_PUNCTUATION on the keyboardType property of a textField along with \"autocorrect: false\" causes punctuation to not be accepted.\r\n\r\nh4. Steps to reproduce:\r\n1. Run the code below.\r\n2. Try typing punctuation in the textField.\r\n3. Notice that punctuation does not show up, only numbers.\r\n4. remove 'autocorrect: false'.\r\n5. Run the test again.\r\n6. Notice that it is now possible to add punctuation.\r\n\r\nautocorrect also causes problems when the keyboardType is set to KEYBOARD_DECIMAL_PAD\r\n\r\n7. Change KEYBOARD_NUMBERS_PUNCTUATION to KEYBOARD_DECIMAL_PAD.\r\n8. Try it with and without autocorrect set to false.\r\n9. Notice that when autocorrect is false, it is only possible to add a single decimal point (this may be expected behavior but it is not consistent with iOS).\r\n10. Notice that when autocorrect is removed, it is possible to add any punctuation (this is not correct).\r\n\r\nh4. Repro case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff'\r\n});\r\nwin.open();\r\n\r\nvar ipAddress = Ti.UI.createTextField({\r\n hintText: 'IP Address',\r\n top: 10, left: 10, right: 10,\r\n height: 40,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n autocorrect: false,\r\n keyboardType: Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION\r\n});\r\nwin.add(ipAddress);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TextField with KEYBOARD_NUMBERS_PUNCTUATION and autocorrect false does not allow punctuation", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.3.GA\r\nDroid Razr HD Android 4.1.1", "comment": { "comments": [ { "id": "281398", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Make sure that InputType.TYPE_CLASS_TEXT is added for number punctuation no matter autocorrect is true or false and also do not set InputType.TYPE_CLASS_TEXT for KEYBOARD_DECIMAL_PAD.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5026", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-26T14:37:05.000+0000", "updated": "2013-11-26T14:37:05.000+0000" }, { "id": "413017", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:01:00.000+0000", "updated": "2017-03-16T21:01:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }