{ "id": "105644", "key": "TIMOB-11903", "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": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-12-06T20:28:39.000+0000", "created": "2012-11-28T23:10:24.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "focus", "titanbeta", "triage" ], "versions": [], "issuelinks": [ { "id": "23413", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "90788", "key": "TIMOB-8869", "fields": { "summary": "Android: soft keyboard is covering the tableViewRow textField ", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23414", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88966", "key": "TIMOB-8332", "fields": { "summary": "Android: tableView textField focus is lost while typing", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-27T22:28:42.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\r\nTextField (on a TableViewRow) loses focus mysteriously after being focused with a click. The keyboard pops up correctly, but then focus is removed from the TextField (blur does fire), even though the keyboard remains. Typing on the keyboard does not affect the TextField. A second click of the TextField focuses it and the keyboard works.\r\n\r\nAlso, the same TextField can't be focused with .focus()...the call to .focus() is simply ignored.\r\n\r\nh3.Testcase\r\n{panel:title=app.js}\r\n{code}\r\nvar win1 = Ti.UI.createWindow({ \r\n backgroundColor:'black'\r\n});\r\n\r\nwin1.addEventListener('open',MainWinLoad);\r\n function MainWinLoad()\r\n {\r\n Ti.API.info('--> trying to focus the text field');\r\n TheTextField.focus();\r\n }\r\n\r\nvar TheListBox=Ti.UI.createTableView({width:'auto'});\r\nvar BIRow=Ti.UI.createTableViewRow({color:'white',\r\n title:'No background image',\r\n height:120});\r\nvar TheTextField=Ti.UI.createTextField({keyboardType:Ti.UI.KEYBOARD_DEFAULT,\r\n returnKeyType:Ti.UI.RETURNKEY_DEFAULT,\r\n autocorrect:false,\r\n width:100,\r\n top:55,\r\n left:2\r\n });\r\nBIRow.add(TheTextField);\r\n\r\nTheListBox.appendRow(BIRow);\r\n\r\nwin1.open();\r\nwin1.add(TheListBox);\r\n{code}\r\n{panel}", "attachment": [], "flagged": false, "summary": "Android: TextField in a TableViewRow loses focus mysteriously and can't be focused with .focus()", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "-Android 2.2 emulator\r\n-Titanium Mobile SDK 2.1.4.GA\r\n-Titanium Studio 2.1.2.201208301612", "comment": { "comments": [ { "id": "229067", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested this back to 2.1.2.GA and still see the same behavior on Samsung SIII 4.0.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T18:21:36.000+0000", "updated": "2012-11-29T18:21:36.000+0000" }, { "id": "230274", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The textfield does not focus because the underlying native view is not realized when the open event is fired. \n\nDue to limitations of the underlying OS we do not support placing textfield/textareas inside tableview rows.\n\nSee the discussion in the linked tickets TIMOB-8332 and TIMOB-8869\n\nMarking the ticket as wont fix.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T20:27:56.000+0000", "updated": "2012-12-06T20:27:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }