{ "id": "62273", "key": "TIMOB-1641", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:44.000+0000", "created": "2011-04-15T02:58:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-06-21T14:30:30.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": "{html}
Add support for overriding hardware buttons on Android devices.\nNot all devices will have all buttons. The following buttons should\nbe supported.
\nBack, Camera, Focus (Half-Press of Camera), Search, Volume Up,\nand Volume Down.
\nIf an event is added for any of these buttons, it takes sole\nresponsibility for the action of the button. There will be no\nmethod to conditionally forward to the original handler. Removal of\nthe event listener will restore default handling.
\nThese handlers are allowed on Ti.UI.Window and will only\nfunction when attached to \"heavyweight\" windows. When\nTi.Android.Activity
is released handlers will be\nsettable on Ti.Android.currentActivity
.
No additional data is passed in the event object.
\nExample.
\n\nwin.addEventListener('android:back', function(e) {\n Ti.API.Info(\"Pressing Back Will Not Close The Activity/Window\");\n});
\n
\nEvent Names:
\nandroid:back, android:camera, android:focus, android:search,\nandroid:volup, android:voldown
Sample used during dev. \nandroid-keyboard.js
(from [b59fa44d54329b101c639252792968b10ba1113b])\n[#1641 state:fixed-in-qa] implemented. Events are\nfired on key up, down and repeat are ignored. Adding a listener\nshortcuts the key being passed on for default processing. \nhttp://github.com/appcelerator/titanium_mobile/commit/b59fa44d54329...
(from [d62b2f33f5d5397758b06a33637e92ecd88694f6])\n[#1641 state:fixed-in-qa] implemented. Events are\nfired on key up, down and repeat are ignored. Adding a listener\nshortcuts the key being passed on for default processing. \nhttp://github.com/appcelerator/titanium_mobile/commit/d62b2f33f5d53...
thanks for the test content. Confirmed on simulator and device\n(though on the nexus I did not have a camera button, so camera and\nfocus were not tested).