{ "id": "63133", "key": "TIMOB-2501", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:46:20.000+0000", "created": "2011-04-15T03:21:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T22:46:20.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": "{html}

Tested on android 1.4.X and 1.5.X, the following code\r\ndemonstrates that return is suppressed if\r\nkeyboardType:Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION is set. If you\r\ncomment out this line, the correct, default behaviour (where a new\r\nline is inserted when return is pressed) is observed.

\r\n
\r\nvar win = Ti.UI.createWindow({  \r\n    backgroundColor:'white',\r\n    navBarHidden:false,\r\n    title:'This is window 1'\r\n});\r\n\r\nvar ta1 = Titanium.UI.createTextArea({\r\n    value:'I am a textarea',\r\n    height:70,\r\n    width:300,\r\n    keyboardType:Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION,  // problem\r\n    top:10\r\n});\r\nwin.add(ta1);\r\n\r\nvar l = Titanium.UI.createLabel({\r\n    text:'Text area tests.',\r\n    font:{fontSize:14},\r\n    left:10,\r\n    top:100,\r\n    width:300,\r\n    height:'auto'\r\n});\r\nwin.add(l);\r\n\r\nta1.addEventListener('change',function(e)\r\n{\r\n    l.text = 'change fired, value = ' + e.value;\r\n});\r\n\r\nwin.open();\r\n
\r\n

Note that other constants don't seem to cause the same issue,\r\nfor example keyboardType:Ti.UI.KEYBOARD_ASCII, although I haven't\r\ntested them all.

{html}", "attachment": [], "flagged": false, "summary": "Android: UI.KEYBOARD_NUMBERS_PUNCTUATION constant causes return to be suppressed", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "215890", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, issue still valid. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-23T14:26:14.000+0000", "updated": "2012-08-23T14:26:14.000+0000" }, { "id": "421306", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T22:46:20.000+0000", "updated": "2017-06-07T22:46:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }