{ "id": "110011", "key": "TIMOB-12818", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "100935", "key": "TIMOB-10872", "fields": { "summary": "BlackBerry: Implement important Titanium.UI.TextField functionality", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15096", "description": "2013 Sprint 04 BB", "name": "2013 Sprint 04 BB", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-22T02:55:52.000+0000", "created": "2013-02-22T01:54:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T18:26:24.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Implement the blur and focus methods for TextFields.\r\n\r\nh3. Acceptance Test\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar textfield = Ti.UI.createTextField();\r\nwin.add(textfield);\r\n\r\ntextfield.addEventListener('focus', function() {\r\n\tTi.API.info('focus');\r\n});\r\ntextfield.addEventListener('blur', function() {\r\n\tTi.API.info('blur');\r\n});\r\n\r\nsetTimeout(function() {\r\n\ttextfield.focus();\r\n\tsetTimeout(function() {\r\n\t\ttextfield.blur();\r\n\t}, 2000);\r\n}, 2000);\r\n\r\nwin.open();\r\n{code}\r\n\r\n1. Wait a couple seconds after the app launches.\r\n2. Verify the textfield automatically gains focus.\r\n There should also be a log \"focus\" printed.\r\n3. Wait another couple seconds after focus.\r\n There should also be a log \"blur\" printed.\r\n4. The textfield should have lost focus.\r\n5. Try focusing the field by clicking on it.\r\n A log \"focus\" should be printed and the keyboard presented.\r\n6. Blur the field by tapping elsewhere in the window (background).\r\n It should be blurred and a log \"blur\" printed.\r\n\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: TextField blur and focus", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "409894", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as resolved.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T18:26:24.000+0000", "updated": "2017-03-08T18:26:24.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }