{ "id": "113423", "key": "TIMOB-13680", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-04-26T09:50:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "mobilesdk", "nexus", "titanium" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-06-30T04:37:13.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When we click on any text field or text area then on Nexus device where hardware back button actually now soft touch button, gets converted to Hide Keyboard button.\r\n\r\nThere is not such event or callback through which we can get this event.\r\n\r\n**sample code**\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:\"gray\",\r\n\tfocusable:true\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\ttop:10,\r\n\tleft:10,\r\n\theight:100,\r\n\twidth:200,\r\n\ttitle:\"click me\",\r\n\tfocusable:true\r\n});\r\n\r\nvar txt1 = Ti.UI.createTextField({\r\n\ttop:150,\r\n\tleft:10,\r\n\theight:200,\r\n\twidth:400,\r\n\tvalue:\"type here\",\r\n\tfocusable:true\r\n\t\r\n});\r\n\r\n\r\ntxt1.addEventListener(\"keypressed\",function(){\r\n\talert(\"keypressed text field\");\r\n});\r\n\r\ntxt1.addEventListener(\"blur\",function(){\r\n\talert(\"blur txt\");\r\n});\r\n\r\ntxt1.addEventListener(\"keypressed\",function(){\r\n\talert(\"window keypressed\");\r\n});\r\n\r\nwin1.addEventListener(\"keypressed\",function(){\r\n\talert(\"windows keypressed\");\r\n});\r\n\r\nwin1.addEventListener(\"blur\",function(){\r\n\talert(\"blur window\");\r\n});\r\n\r\n\r\n\r\nwin1.add(txt1);\r\n\r\nwin1.open();\r\n\r\n{code}\r\n\r\nSteps to check:\r\n1: Use this code in app.js and install the app on nexus 7 device.\r\n2: tap on the text field and then see the android back button.\r\n3: Note that back button is converted to hide keyboard button.\r\n4: now when we press this button then no event is there to find that.\r\n5: keyboard hide without any possibility to detect this touch event on back button.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: functionality or some event to get hide keyboard button press event. ", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Android Nexus devices, Titanium Mobile SDK", "comment": { "comments": [ { "id": "291545", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can add an event to 'androidback', which will fire when user hits the hardware back button. If not, can you clarify your use case for this particular event that you are requesting? Thanks,", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T23:16:45.000+0000", "updated": "2014-02-05T23:16:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }