{ "id": "99362", "key": "TIMOB-11679", "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": "2013-04-18T17:37:02.000+0000", "created": "2012-08-17T04:51:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Community", "exalture" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-22T22:36:10.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": "h2. Problem description\r\n\r\nIf window has \"focus\" event listener attached and it contains text fields, text fields triggers window's focus event. \r\n \r\n\r\nh2. Sample code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#000',\r\n\tlayout: 'vertical',\r\n\tnavBarHidden: true\r\n});\r\n\r\nfor (var i = 0; i < 10; ++i) {\r\n\tvar tf = Ti.UI.createTextField({\r\n\t\twidth: 200\r\n\t});\r\n\twin.add(tf);\r\n}\r\n\r\n\r\nwin.addEventListener('focus', function() {\r\n\tTi.API.info('Window focused!');\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nClicking on the textFields not focused, the windows 'focus' event listener is triggered.\r\n \r\n \r\nh6. Expected behavior:\r\nText fields 'focus' event listener should not be triggered in this case", "attachment": [], "flagged": false, "summary": "Android: Text field triggers \"focus\" event of TiUIWindow", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.1.3 GA and 3.x branch", "comment": { "comments": [ { "id": "226391", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed.\nMoving to TIMOB", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-06T22:26:22.000+0000", "updated": "2012-11-06T22:26:22.000+0000" }, { "id": "248178", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "'focus' event bubbles from child to parent, child can cancel the bubbling by setting the 'cancelBubble' property on the event in the child's event handler.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-18T17:37:02.000+0000", "updated": "2013-04-18T17:37:02.000+0000" }, { "id": "415143", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:36:10.000+0000", "updated": "2017-03-22T22:36:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }