{ "id": "83195", "key": "TIMOB-6367", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14625", "description": "2012 Sprint 24 API", "name": "2012 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-21T10:42:15.000+0000", "created": "2011-11-29T17:11:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "kitchensink", "qe-testadded" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15333", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "86784", "key": "TIMOB-7748", "fields": { "summary": "Android: Cancel button in search bar does not work", "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": "2013-06-21T10:42:15.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": "Description:\r\nIn KitchenSink, in Controls>Search bar, blurring the search bar should dismiss the soft kb if it's onscreen but does not. A visible movement of the KB is perceived as it starts to dismiss, but does not actually complete the process. It remains on screen. \r\n\r\nThe workaround is to hide the field and then attempt to blur. THe KB will be removed from the screen.\r\n\r\nSteps to reproduce:\r\n1) Install KS with 1.8.0.1\r\n2) Navigate to Controls>Search bar\r\n3) Click on the search to bring up the soft KB\r\n4) Click the cancel button or click the \"blur search bar\"\r\n\r\nResult:\r\nKB moves slightly as if it will move offscreen, but the KB remains on screen\r\n\r\nExpected:\r\nKB is removed from the screen\r\n\r\nNote:\r\nAlso Occurs With 1.7.5 GA", "attachment": [], "flagged": false, "summary": "Android: searchBar.blur() - v8/rhino - Blurring search bar attempts to hide soft KB but fails", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Nexus S (2.3.4), Droid 3 (2.2.2), Galaxy Tab 10.1 (3.1), Xoom (3.2.1), SDK 1.8.0.1.v20111123202050, Titanium Studio, build: 1.0.7.201111282022\r\n", "comment": { "comments": [ { "id": "174253", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The same behavior occurs with the KS test:\r\nControls>text area>Basic", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T17:13:34.000+0000", "updated": "2011-11-29T17:13:34.000+0000" }, { "id": "176240", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also occurs with Controls>Test Field>Events with SDK 1.8.0.1.v20111214093905 on Both Xoom and LG Slate", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-15T10:33:11.000+0000", "updated": "2011-12-15T10:33:11.000+0000" }, { "id": "183892", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This also means that there seems to be no way to use the built-in cancel button on the search bar. It doesn't generate a 'blur' event, so there's no way to know when it's been pressed in order to use Eric's workaround.\r\n\r\nIn the following test case, note that:\r\n\r\n1) No matter what I do, the 'blur' event is not generated.\r\n2) Clicking the \"Cancel\" button does not clear the search field, blur the search field, or close the onscreen keyboard.\r\n3) The Back button will close the onscreen keyboard, but there doesn't seem to be any way to clear the text in the search bar short of erasing it one character at a time.\r\n\r\n\r\n{code}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar win = Ti.UI.createWindow({\r\n title:'Tableview with Filter',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nfunction makeRow() {\r\n // generate random string of digits and capital English letters\r\n // see http://en.wikipedia.org/wiki/Base_36\r\n return Ti.UI.createTableViewRow({\r\n title: Math.random().toString(36).substring(7)\r\n });\r\n}\r\nvar searchbar = Ti.UI.createSearchBar({\r\n showCancel: true,\r\n hintText: \"This is the hint text\",\r\n});\r\nsearchbar.addEventListener('blur', function(e) {\r\n\tTi.API.info(\"Blur event called.\");\r\n});\r\nsearchbar.addEventListener('focus', function(e) {\r\n\tTi.API.info(\"Focus event called.\");\r\n});\r\nvar tbl = Ti.UI.createTableView({\r\n\r\n search: searchbar,\r\n});\r\nvar data = [];\r\nfor(var i=0; i<100; i++) {\r\n data.push(makeRow());\r\n}\r\ntbl.data = data;\r\nwin.add(tbl);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-21T17:08:15.000+0000", "updated": "2012-02-21T17:08:15.000+0000" }, { "id": "183895", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Correction to the above: blur seems to be fired in the emulator if:\r\n\r\n1) I use the back button to close the keyboard, AND\r\n2) I scroll down with the mouse scrollwheel.\r\n\r\nHowever, just clicking on a row outside of the search box doesn't blur the search box.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-21T17:23:40.000+0000", "updated": "2012-02-21T17:23:40.000+0000" }, { "id": "183901", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Update: looking into the Kitchen Sink issues, I think they're not the same issue. I think what we have in the Kitchen Sink is a sample issue, caused by the fact that there is no other focusable control on screen, so as soon as the search bar is blurred, it gets focus again by default. \r\n\r\nI opened a new bug for the issues I reported above: TIMOB-7748.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-21T18:15:59.000+0000", "updated": "2012-02-21T18:15:59.000+0000" }, { "id": "229734", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/3515", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T00:23:48.000+0000", "updated": "2012-12-04T00:23:48.000+0000" }, { "id": "240342", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130228145653\r\nStudio: 3.1.0.201302252142\r\nDevice: Samsung tab(v 3.2)\r\n\r\nworks as expected.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T11:06:47.000+0000", "updated": "2013-03-01T11:06:47.000+0000" }, { "id": "258973", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T10:39:57.000+0000", "updated": "2013-06-21T10:39:57.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }