{ "id": "64083", "key": "TIMOB-3451", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-05-29T16:56:44.000+0000", "created": "2011-04-15T03:45:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "16687", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:40:37.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}
Environment:
\r\nThis issue was first discovered by user \"JH\" in this \r\nQ&A post
\r\nWith a textField added to a tableViewRow on a secondary tab, the\r\nuser clicks it and the keyboard appears but the textField loses\r\nfocus. This is demonstrated by the following code:
\r\nvar win1 = Ti.UI.createWindow({\r\n title:\"Window 1\"\r\n});\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n title:\"Tab 1\",\r\n window: win1\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n title:\"Window 2\"\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow({});\r\nvar tF = Ti.UI.createTextField({\r\n// keyboardType:Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION, // another issue reported in next ticket\r\n width:300\r\n});\r\n\r\nrow.add(tF);\r\nvar tV = Ti.UI.createTableView({data:[row]});\r\n//win1.add(tV); // this works as expected\r\nwin2.add(tV); // this demonstrates the issue\r\n \r\nvar tab2 = Ti.UI.createTab({ \r\n title:'Tab 2',\r\n window: win2\r\n});\r\n \r\nvar tabGroup = Ti.UI.createTabGroup();\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.open();
\r\n
\r\nThe issue does not exist when a tableView or tabGroup are not\r\nused, and 1.5.1 exhibits the correct behavior