{ "id": "63625", "key": "TIMOB-2993", "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": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-09T00:03:10.000+0000", "created": "2011-04-15T03:34:20.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_textfield", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-10T10:29:59.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}

Reference Ticket: http://developer.appcelerator.com/helpdesk/view/69271

\r\n

Test Code:

\r\n
\r\nvar mywin = Ti.UI.createWindow();
\r\n
\r\n\r\n\r\n
\r\nvar tf1 = Ti.UI.createTextField({
\r\n
\r\n\r\n\r\n
\r\n
\r\n
\r\ntop: 50,\r\nleft: 10, \r\nheight: 35, \r\nwidth: 250,\r\nreturnKeyType: Ti.UI.RETURNKEY_SEARCH,  //causes duplicate (2) 'return' interrupts in Android\r\nfont: {fontSize: 16, fontWeight: 'bold', fontFamily: 'Helvetica Neue'},\r\nbackgroundColor:'white'\r\n
\r\n
\r\n\r\n\r\n
\r\n});\r\n\r\n
\r\nvar tf2 = Ti.UI.createTextField({\r\n\r\n
\r\n
\r\ntop: 100, left: 10, height: 35, width: 250,\r\nfont: {fontSize: 16, fontWeight: 'bold', fontFamily: 'Helvetica Neue'},\r\nbackgroundColor:'white' });\r\n
\r\n
\r\n\r\n\r\n
\r\ntf1.addEventListener('return', function(e) {\r\n\r\n
\r\n
\r\nTi.API.info('RETURN: src=' + e.source + ', type=' + e.type);\r\n
\r\n
\r\n\r\n\r\n
\r\n});\r\ntf2.addEventListener('return', function(e) {\r\n\r\n
\r\n
\r\nTi.API.info('RETURN: src=' + e.source + ', type=' + e.type);\r\n
\r\n
\r\n\r\n\r\n
\r\n});\r\nmywin.add(tf1);\r\nmywin.add(tf2);\r\n\r\n
\r\nmywin.open();\r\n
{html}", "attachment": [], "flagged": false, "summary": "Android Bug: Search TextField produces duplicate RETURN events", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "194750", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6), unable to reproduce the issue. Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-14T15:50:49.000+0000", "updated": "2012-05-14T15:50:49.000+0000" }, { "id": "207842", "author": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested with:
\r\nTitanium Studio, build: 2.1.1.201207121732\r\n
Titanium SDK: 2.2.0.v20120716114111\r\nDevice: LG-V909 Android (3.1)", "updateAuthor": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T15:07:34.000+0000", "updated": "2012-07-16T15:07:34.000+0000" }, { "id": "213501", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T00:01:25.000+0000", "updated": "2012-08-09T00:01:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }