{ "id": "98321", "key": "TIMOB-10232", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-10T18:10:34.000+0000", "created": "2012-07-30T10:46:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api", "module_view", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "21690", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "102495", "key": "TIMOB-11226", "fields": { "summary": "iOS: Capturing onKeyPress from the hardware 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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "21689", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "102494", "key": "TIMOB-11225", "fields": { "summary": "MobileWeb: Capturing onKeyPress from the hardware 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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "21935", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103166", "key": "TIMOB-11396", "fields": { "summary": "Android: Soft keyboard does not show when clicking on TextField", "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 } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-12T10:52:21.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": "h3. Requirement\r\n\r\nThere is a request of a new feature to support the hardware keyboard on Android apart. The only way to capture keystrokes on the device is via a focus event on a textfield or textarea. \r\n\r\nIt has been requested to expose the onKeyPress native Android method (primarily on a view) so the hardware keyboard can be accessed from outside the textfield/textarea.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Capturing onKeyPress from the hardware keyboard", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: Android\r\nTitanium SDK: 2.1.0.GA", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "221749", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor : \"white\"\n});\n\nvar v1 = Ti.UI.createView({\n\tbackgroundColor : \"red\",\n\ttop : 0,\n\tleft: 250,\n\theight : 100,\n\twidth : 100,\n\tfocusable : true\n});\n\nv1.addEventListener(\"keypressed\", function(e) {\n\tTi.API.info(\"************** Red view keypressed: keyCode = \" + e.keyCode);\n});\n\nv1.addEventListener(\"click\", function(e) {\n\tTi.API.info(\"************** Red view clicked\");\n});\n\nvar l1 = Ti.UI.createLabel({\n\ttop: 0,\n\tleft: 10,\n\twidth: 240,\n\ttext: \"Red view: focusable = \" + v1.focusable\n});\n\nvar b1 = Ti.UI.createButton({\n\ttop: 0,\n\tleft: 360,\n\ttitle: \"Toggle 'focusable' for Red View\"\n});\n\nb1.addEventListener(\"click\", function(){\n\tv1.focusable = !v1.focusable;\n\tl1.text = \"Red view: focusable = \" + v1.focusable\n});\n\n\nvar v2 = Ti.UI.createView({\n\tbackgroundColor : \"blue\",\n\ttop : 110,\n\tleft: 250,\n\theight : 100,\n\twidth : 100,\n\tfocusable : false\n});\n\nv2.addEventListener(\"keypressed\", function(e) {\n\tTi.API.info(\"************** Blue view keypressed: keyCode = \" + e.keyCode);\n});\n\nv2.addEventListener(\"click\", function(e) {\n\tTi.API.info(\"************** Blue view clicked\");\n});\n\nvar l2 = Ti.UI.createLabel({\n\ttop: 110,\n\tleft: 10,\n\twidth: 240,\n\ttext: \"Blue view: focusable = \" + v2.focusable\n});\n\nvar b2 = Ti.UI.createButton({\n\ttop: 110,\n\tleft: 360,\n\ttitle: \"Toggle 'focusable' for Blue View\"\n});\n\nb2.addEventListener(\"click\", function(){\n\tv2.focusable = !v2.focusable;\n\tl2.text = \"Blue view: focusable = \" + v2.focusable\n});\n\n\nwin.add(l1);\nwin.add(l2);\nwin.add(b1);\nwin.add(b2);\nwin.add(v1);\nwin.add(v2);\nwin.open();\n{code}\nSteps for FR:\n1. Run the above test case.\n2. Use hardware key to focus the red view. Should see the output in the console, like:\n{code}\nI/TiAPI ( 6118): ************** Red view keypressed: keyCode = 19\n{code}\n3. Click the button \"Toggle 'focusable' for Blue View\" so that Blue View's focusable is true. (The \"keypressed\" event can only be fired when focusable=true).\n4. Use hardware key to focus the blue view. Should see a similar output in the console.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T18:17:05.000+0000", "updated": "2012-10-02T18:17:05.000+0000" }, { "id": "221750", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3095", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T18:17:45.000+0000", "updated": "2012-10-02T18:17:45.000+0000" }, { "id": "227047", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3410", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T20:04:43.000+0000", "updated": "2012-11-12T20:04:43.000+0000" }, { "id": "228492", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121121161553 on Droid 1 2.2.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-26T19:57:50.000+0000", "updated": "2012-11-26T19:57:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }