{ "id": "103043", "key": "TIMOB-11690", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16093", "description": "2014 Sprint 08 SDK", "name": "2014 Sprint 08 SDK", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-14T23:13:18.000+0000", "created": "2012-10-10T09:00:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_api", "qe-closed-3.3.0", "qe-testadded", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-23T09:45:56.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "The title is quite explicit\r\nI should mention that on android it s hide the softkeyboard, which is quite obvious ....\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nwin.backgroundColor = '#ccc';\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tborderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n color: '#336699',\r\n width: 250, height: 60\r\n});\r\nwin.add(textField);\r\n\r\nwin.addEventListener('click', function(e){\r\n\tif (e.source !== textField)\r\n\t\twin.hideKeyboard();\r\n})\r\n\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: hideKeyboard method for view", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 3.1.0 master\r\nandroid / ios", "comment": { "comments": [ { "id": "222884", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/3147", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-10T09:18:15.000+0000", "updated": "2012-10-10T09:18:15.000+0000" }, { "id": "274250", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a reason you can't do textField.blur()?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-08T20:50:29.000+0000", "updated": "2013-10-08T20:50:29.000+0000" }, { "id": "274371", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "i would not have implemented it if it wasn't necessary ;)\r\nOn example of use is when you have a login page with multiple textfields, or even a listview with textfields. Instead of keeping a reference to the current textfield, which is completely unnecessary, you can use this.\r\nPlus in a commonjs structure, one widget can not have any reference to the current textfield but might still want to make sure the keyboard gets hidden.", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-10-09T14:11:06.000+0000", "updated": "2013-10-09T14:11:06.000+0000" }, { "id": "300906", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5606", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-14T22:31:07.000+0000", "updated": "2014-04-14T22:31:07.000+0000" }, { "id": "302151", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with environment:\r\n\r\nAppc-Studio:3.3.0.201404211130\r\nsdk:3.3.0.v20140422163054\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Iphone5s(7.1.1),LG-P970(v4.0.4)\r\n\r\nhideKeyboard method working well.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-23T09:31:26.000+0000", "updated": "2014-04-23T09:31:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }