{ "id": "86456", "key": "TIMOB-8637", "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": "2018-06-30T02:30:09.000+0000", "created": "2012-02-14T10:13:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "56661", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "164491", "key": "TIMOB-24138", "fields": { "summary": "Android: TextField/TextArea should not receive focus by default when a window is opened", "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": "16814", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "90755", "key": "TIMOB-8860", "fields": { "summary": "Android: Window: Opening new window when keyboard is up fails to hide keyboard", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-30T02:31:02.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": "On a Samsung Galaxy Tab running Android 3.2, if you have a textfield in your window, it will auto set focus to it when either the window is opened or when you create the textfield after the window is opened. This is OK for some situations, such as when you have a form and want it to set focus to the first element by default. However, in other cases, such as when you have a TextField hiding off of the screen and then slide it into view when the user presses a button, it becomes an issue as the keyboard slides up for no reason. Note that it does not set focus to the textfield within the Android emulator.\r\n\r\nHere is code to reproduce, which creates the textfield after opening the window.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: \"#fff\" });\r\nwin.addEventListener(\"open\", function() {\r\n\tvar text = Ti.UI.createTextField({ width: 200, height: 60, top: 20, enabled: false, borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED });\r\n\twin.add(text);\r\n});\r\nwin.open();\r\n{code}\r\n\r\nAnd more code, which shows the same behavior when creating the textfield and then opening the window.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: \"#fff\" });\r\nvar text = Ti.UI.createTextField({ width: 200, height: 60, top: 20, enabled: false, borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED });\r\nwin.add(text);\r\nwin.open();\r\n{code}\r\n\r\nEven setting the textfield to enabled: false, it still auto focuses it. At the very least, there should be a property that you can set that will prevent it from auto focusing the textfield. Ideally it should not auto focus the textfield, that way you have the option of focusing it with the textfield.focus(); method yourself.", "attachment": [], "flagged": false, "summary": "Android: auto-focuses and shows keyboard for first textfield on Samsung Galaxy Tab on window open or textfield create after window open", "creator": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "environment": "Samsung Galaxy Tab\r\nandroid 3.2\r\nTi SDK 2.0.x", "comment": { "comments": [ { "id": "188056", "author": { "name": "slaaitjuh", "key": "slaaitjuh", "displayName": "Jan Helleman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's not even consistent. I have a tab view that does not auto focus. But when opening another window with a textfield it does auto focus. It's a serious bug that I cannot translate to my clients.", "updateAuthor": { "name": "slaaitjuh", "key": "slaaitjuh", "displayName": "Jan Helleman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T14:05:32.000+0000", "updated": "2012-03-22T14:05:32.000+0000" }, { "id": "190406", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-04-09T23:48:53.000+0000", "updated": "2012-04-09T23:48:53.000+0000" }, { "id": "192135", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "I no longer see this issue in 2.0.1.GA2, it looks to be fixed...", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-20T16:12:02.000+0000", "updated": "2012-04-20T16:12:02.000+0000" }, { "id": "192273", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am still seeing this issue.\r\n\r\nSDK: 2.0.1.GA2, 2.0.2.v20120418121806\r\nStudio: 2.0.2.201204201120\r\nOS: Snow Leopard\r\nDevices Tested: Galaxy Tab 10.1 3.2\r\n\r\nNote: Does not occur on Nexus One 2.2.2, Droid3 2.3.4, Galaxy Nexus 4.0.4, or iOS (parity).\r\n\r\nThe keyboard opens (without permission) when the app first runs.\r\n\r\nAll the previous test code and the code below exhibit the bug behavior.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'blue',\r\n\torientationModes:[Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tbackgroundColor:'white',\r\n\tvalue:'TextField',\r\n\ttop:'40%',\r\n\tbottom:'40%',\r\n\tleft:'10%',\r\n\tright:'10%',\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_CENTER\r\n});\r\n\r\nwin.add(textField);\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Open New Window',\r\n\tbackgroundColor:'white',\r\n\ttop:'10%',\r\n\tleft:'10%',\r\n\tright:'10%',\r\n\theight:'20%',\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_CENTER\r\n});\r\n\r\nvar subWin = Ti.UI.createWindow({\r\n\tbackgroundColor:'green'\r\n});\r\n\r\nvar subButton = Ti.UI.createButton({\r\n\ttitle:'Close',\r\n\ttop:'40%',\r\n\tbottom:'40%',\r\n\tleft:'20%',\r\n\tright:'20%'\r\n});\r\n\r\nbutton.addEventListener('click', function(){\r\n\tsubWin.open();\r\n});\r\n\r\nwin.add(button);\r\n\r\nsubWin.add(subButton);\r\n\r\nsubButton.addEventListener('click', function(){\r\n\tsubWin.close();\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-23T12:13:16.000+0000", "updated": "2012-04-23T12:13:16.000+0000" }, { "id": "242643", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Device specific\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T12:27:37.000+0000", "updated": "2013-03-18T12:27:37.000+0000" }, { "id": "438876", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue will be resolved by [TIMOB-24138]", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-30T02:31:02.000+0000", "updated": "2018-06-30T02:31:02.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }