{ "id": "86008", "key": "TIMOB-8488", "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": "2012-05-22T11:21:02.000+0000", "created": "2012-02-04T17:06:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:40:29.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The following code reveals a keyboard with the return key disabled:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'red'\r\n});\r\n\r\nwin.open();\r\n\r\nvar myTextField = Ti.UI.createTextField({\r\n backgroundColor:'white',\r\n enableReturnKey:true,\r\n width:'100',\r\n height:'20'\r\n});\r\n\r\nwin.add(myTextField);\r\n \r\nwin.addEventListener(\"open\", function(event, type) {\r\n myTextField.focus();\r\n});\r\n{code}\r\n\r\nHad me scratching my head for a bit :)", "attachment": [], "flagged": false, "summary": "iOS: Setting TextField's enableReturnKey to true disables the return key", "creator": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 1.0.8.201201262211\r\nBuild: jenkins-titanium-rcp-master-136 (origin/master)", "comment": { "comments": [ { "id": "181958", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2012-02-06T06:36:51.000+0000", "updated": "2012-02-06T06:36:51.000+0000" }, { "id": "195610", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "According to our documentation, this is the expected behavior: http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.TextField-property-enableReturnKey\r\n\r\n'If true, the return key is disabled when this text field is empty, and automatically enabled as soon as the user types any text in the field.'\r\n\r\nTested with 2.0.1GA2 on a Samsung Galaxy S2 and on the iOS simulator, the behavior on both platforms is consistent. \r\n\r\nTicket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-22T11:21:02.000+0000", "updated": "2012-05-22T11:21:02.000+0000" }, { "id": "415423", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:40:29.000+0000", "updated": "2017-03-23T21:40:29.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }