{ "id": "63555", "key": "TIMOB-2923", "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-05-21T10:00:17.000+0000", "created": "2011-04-15T03:33:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-port" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-28T10:50: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": "{html}
When opening a window and focusing a text field, the events that\r\nfire are very inconsistent across Android and iOS. One way they are\r\ninconsistent is that Android will bubble events out, while iOS does\r\nnot.
\r\nFor example... you open a window, and click in a text field.
\r\nOn iOS, the events fire in this order: window focus, textfield\r\nfocus.
\r\nOn Android, the events fire in this order: textfield focus,\r\nwindow focus, textfield click, window click.
\r\nEvents should be consistent across the platforms. Perhaps it\r\ncould be optional to turn on event bubbling on iOS, and it could be\r\nmade optional by default on Android as well.
\r\nTitanium Mobile 1.6.0 1/19/11
\r\niPhone Simulator 4.2
\r\nAndroid Simulator 2.2
Attached. Follow the instructions in the Ti.UI.Label created by\r\nthe app, and look at the Ti Developer console to see when events\r\nare firing and if they are expected or not.
\r\nIn the iPhone simulator, my console showed the\r\nfollowing:
\r\n[INFO] PASS: window-focus fired\r\n[ERROR] FAIL: Skipped expected textfield-click\r\n[INFO] PASS: textfield-focus fired
\r\n
\r\nAndroid showed the following:
\r\n[ERROR] [2257,2269] FAIL: textfield-focus fired when expected window-focus\r\n[INFO] [4,2273] PASS: window-focus fired\r\n[INFO] [4,2741] PASS: textfield-click fired\r\n[ERROR] [29,2770] FAIL: window-click fired when expected textfield-focus
\r\n
\r\n